diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..13f63cb --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# Local .terraform directories +**/.terraform/* + +# .tfstate files +*.tfstate +*.tfstate.* + +**/.idea +**/*.iml + +**/.build-harness +**/build-harness + +# Rendered yaml config +**/configmap-auth.yaml diff --git a/main.tf b/main.tf index f219676..cef23f3 100644 --- a/main.tf +++ b/main.tf @@ -3,12 +3,13 @@ module "label" { name = var.name stage = var.stage delimiter = var.delimiter - attributes = compact(concat(var.attributes, list("cluster"))) + #attributes = compact(concat(var.attributes, list("cluster"))) + attributes = compact(concat(var.attributes, tolist(["cluster"]))) tags = var.tags } locals { - tags = merge(module.label.tags, map("kubernetes.io/cluster/${module.label.id}", "shared")) + tags = merge(module.label.tags, tomap({ "kubernetes.io/cluster/${module.label.id}" = "shared"})) } #module "carnext_poc-day0-deploy" {