From 6df0a4fa6f603266aa5573a448f01c3464694707 Mon Sep 17 00:00:00 2001 From: Patrick de Ruiter Date: Tue, 8 Jun 2021 11:31:50 +0200 Subject: [PATCH] Added .gitignore file to exclude files that we do not want to be pushed to remotes --- .gitignore | 15 +++++++++++++++ main.tf | 5 +++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .gitignore 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" {