This commit is contained in:
2024-04-25 10:51:58 +02:00
parent 7120c01128
commit aeabd321c7

View File

@@ -83,7 +83,7 @@ resource "kubectl_manifest" "ci-git-repo" {
kind: GitRepository
metadata:
name: "deploy-git"
namespace: "${var.namespace}"
namespace: "${local.sorted-stages[count.index].namespace}"
labels: ${jsonencode(local.push-labels)}
spec:
interval: 5m0s
@@ -102,11 +102,11 @@ resource "kubectl_manifest" "ci-kustomization" {
kind: Kustomization
metadata:
name: "${var.instance}-${var.component}-deploy"
namespace: "${var.namespace}"
namespace: "${local.sorted-stages[count.index].namespace}"
labels: ${jsonencode(local.push-labels)}
spec:
interval: 5m
path: ./ci
path: ./stages/${local.sorted-stages[count.index].name}/deploy
prune: true
targetNamespace: "${var.namespace}"
sourceRef: