From 17466d0e9d95e733e1eb6ca066e61259844f737b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20B=C3=A4ckman?= Date: Mon, 23 Dec 2024 16:04:46 +0100 Subject: [PATCH] config: add back needs conditional --- helmfile.d/stacks/monitoring-prometheus.yaml.gotmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helmfile.d/stacks/monitoring-prometheus.yaml.gotmpl b/helmfile.d/stacks/monitoring-prometheus.yaml.gotmpl index 3f01536a4..3d8380b82 100644 --- a/helmfile.d/stacks/monitoring-prometheus.yaml.gotmpl +++ b/helmfile.d/stacks/monitoring-prometheus.yaml.gotmpl @@ -14,7 +14,9 @@ templates: needs: - monitoring/networkpolicy - monitoring/podsecuritypolicy + {{- if and (.Values | get "ck8sManagementCluster.enabled" false) (.Values | get "clusterApi.enabled" false) }} - monitoring/kube-state-metrics-extra-resource-metrics + {{- end }} values: {{- if .Values | get "ck8sManagementCluster.enabled" false }} - values/kube-prometheus-stack-sc.yaml.gotmpl @@ -88,8 +90,8 @@ templates: kube-state-metrics-extra-resources: inherit: [ template: prometheus ] - installed: {{ .Values | get "clusterApi.enabled" "false" }} condition: ck8sManagementCluster.enabled + installed: {{ .Values | get "clusterApi.enabled" "false" }} chart: charts/kube-state-metrics-extra-resource-metrics version: 0.1.0 name: kube-state-metrics-extra-resource-metrics