Skip to content

Commit

Permalink
maddevsio#26 Use merged local variable
Browse files Browse the repository at this point in the history
this will make sure the label name is always set
  • Loading branch information
p1gmale0n committed Jan 12, 2021
1 parent fa5f923 commit 8074ac8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions terraform/modules/kubernetes-namespace/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ resource "kubernetes_namespace" "this" {
count = var.enable ? 1 : 0
metadata {
annotations = var.annotations
labels = {
name = var.name
}
labels = local.labels
name = var.name
}

Expand Down

0 comments on commit 8074ac8

Please sign in to comment.