Skip to content

Commit

Permalink
[kube-prometheus-stack] Fix Helm template error by using hasKey to ch… (
Browse files Browse the repository at this point in the history
#4976)

Co-authored-by: Jan-Otto Kröpke <[email protected]>
  • Loading branch information
traberph and jkroepke authored Nov 12, 2024
1 parent f09fe07 commit f2aeaf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 66.1.0
version: 66.1.1
appVersion: v0.78.1
kubeVersion: ">=1.19.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,13 @@ spec:
scrapeConfigSelector:
matchLabels:
release: {{ $.Release.Name | quote }}
{{ else if ne .Values.prometheus.prometheusSpec.scrapeConfigSelector nil }}
{{ else if not (kindIs "invalid" .Values.prometheus.prometheusSpec.scrapeConfigSelector) }}
scrapeConfigSelector: {}
{{- end }}
{{- if .Values.prometheus.prometheusSpec.scrapeConfigNamespaceSelector }}
scrapeConfigNamespaceSelector:
{{ tpl (toYaml .Values.prometheus.prometheusSpec.scrapeConfigNamespaceSelector | indent 4) . }}
{{ else if ne .Values.prometheus.prometheusSpec.scrapeConfigNamespaceSelector nil }}
{{ else if not (kindIs "invalid" .Values.prometheus.prometheusSpec.scrapeConfigNamespaceSelector) }}
scrapeConfigNamespaceSelector: {}
{{- end }}
{{- if .Values.prometheus.prometheusSpec.storageSpec }}
Expand Down

0 comments on commit f2aeaf7

Please sign in to comment.