From 03e191e755d82f265d634e79aa7dd0d308d2f4f4 Mon Sep 17 00:00:00 2001 From: Andreyev Dias de Melo Date: Wed, 6 Nov 2024 19:35:59 -0300 Subject: [PATCH] WIP --- applicationsets/prometheus.yaml | 12 +++++++----- applicationsets/rabbitmq.yaml | 8 +++++++- 2 files changed, 14 insertions(+), 6 deletions(-) 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}}'