diff --git a/share/organisation/stages.tf b/share/organisation/stages.tf index f33aa0a..48cd751 100644 --- a/share/organisation/stages.tf +++ b/share/organisation/stages.tf @@ -108,7 +108,7 @@ resource "kubectl_manifest" "ci-kustomization" { interval: 5m path: ./stages/${local.sorted-stages[count.index].name}/deploy prune: true - targetNamespace: "${var.namespace}" + targetNamespace: "${local.sorted-stages[count.index].namespace}" sourceRef: kind: GitRepository name: "deploy-git"