diff --git a/applicationsets/prometheus.yaml b/applicationsets/prometheus.yaml index 81a6f26..d9ced4d 100644 --- a/applicationsets/prometheus.yaml +++ b/applicationsets/prometheus.yaml @@ -17,10 +17,6 @@ spec: repoURL: https://prometheus-community.github.io/helm-charts targetRevision: 65.8.0 chart: kube-prometheus-stack - helm: - parameters: - - name: createNamespace - value: "true" releaseName: prometheus values: | persistence: @@ -40,4 +36,10 @@ spec: automated: prune: true selfHeal: true - + hooks: + - type: PreSync + manifest: | + apiVersion: v1 + kind: Namespace + metadata: + name: '{{namespace}}' diff --git a/applicationsets/rabbitmq.yaml b/applicationsets/rabbitmq.yaml index 22649ff..4b7cf29 100644 --- a/applicationsets/rabbitmq.yaml +++ b/applicationsets/rabbitmq.yaml @@ -40,4 +40,10 @@ spec: automated: prune: true selfHeal: true - + hooks: + - type: PreSync + manifest: | + apiVersion: v1 + kind: Namespace + metadata: + name: '{{namespace}}'