Skip to content

Commit

Permalink
config: add back needs conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-elastisys committed Dec 23, 2024
1 parent 1d75e9f commit 17466d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helmfile.d/stacks/monitoring-prometheus.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 17466d0

Please sign in to comment.