/terraform-flux-init-cluster

Mirror of https://github.com/Olivr/oStack/tree/main/modules/init-cluster-flux

Primary LanguageHCLApache License 2.0Apache-2.0

Requirements

Name Version
terraform ~> 1.0
kubectl >= 1.7.0

Providers

Name Version
kubectl >= 1.7.0

Modules

No modules.

Resources

Name Type
kubectl_manifest.deploy_keys resource
kubectl_manifest.flux_system resource
kubectl_manifest.install resource
kubectl_manifest.namespaces resource
kubectl_manifest.secrets resource
kubectl_manifest.sync resource
kubectl_file_documents.install data source
kubectl_file_documents.sync data source

Inputs

Name Description Type Default Required
cluster_path Path to synchronize Flux with this cluster string n/a yes
base_dir Name of the base directory. string "base" no
base_path Path to the base directory relative to the current Terraform configuration root. string ".." no
deploy_keys Deploy keys to add. You can pass sensitive values by setting the private_key value to sensitive::key where key refers to a value in sensitive_inputs.
map(object({
name = string
namespace = string
known_hosts = string
private_key = string
public_key = string
}))
{} no
namespaces Namespaces to create list(string) [] no
secrets Secrets to add. You can pass sensitive values by setting any value in data to sensitive::key where key refers to a value in sensitive_inputs.
map(object({
name = string
namespace = string
data = map(string)
}))
{} no
sensitive_inputs Values that should be marked as sensitive. Supported by secrets, deploy_keys. map(string) {} no

Outputs

No outputs.