Skip to content

Commit

Permalink
fix probe selector templating (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
netic-rkm authored Apr 30, 2024
1 parent c6f75e6 commit 31ee3db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: prometheus
type: application
version: "2.1.2"
version: "2.1.3"
appVersion: "v2.48.1"
description: A Helm chart to install Prometheus based on Prometheus Operator
home: https://prometheus.io/
Expand Down
2 changes: 1 addition & 1 deletion charts/prometheus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# prometheus

![Version: 2.1.2](https://img.shields.io/badge/Version-2.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.48.1](https://img.shields.io/badge/AppVersion-v2.48.1-informational?style=flat-square)
![Version: 2.1.3](https://img.shields.io/badge/Version-2.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.48.1](https://img.shields.io/badge/AppVersion-v2.48.1-informational?style=flat-square)

A Helm chart to install Prometheus based on Prometheus Operator

Expand Down
10 changes: 2 additions & 8 deletions charts/prometheus/templates/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,8 @@ spec:
ruleSelector: {{ .Values.prometheusSpec.ruleSelector | toYaml | nindent 4 }}
podMonitorNamespaceSelector: {{ .Values.prometheusSpec.podMonitorNamespaceSelector | toYaml | nindent 4 }}
podMonitorSelector: {{ .Values.prometheusSpec.podMonitorSelector | toYaml | nindent 4 }}
{{ with .Values.prometheusSpec.probeNamespaceSelector }}
probeNamespaceSelector:
{{- . | toYaml | nindent 4 }}
{{ end }}
{{ with .Values.prometheusSpec.probeSelector }}
probeSelector:
{{- . | toYaml | nindent 4 }}
{{ end }}
probeNamespaceSelector: {{ .Values.prometheusSpec.probeNamespaceSelector | toYaml | nindent 4 }}
probeSelector: {{ .Values.prometheusSpec.probeSelector | toYaml | nindent 4 }}
image: {{ .Values.prometheusSpec.image }}
version: {{ .Values.prometheusSpec.version | quote }}
resources: {{ .Values.prometheusSpec.resources | toYaml | nindent 4 }}
Expand Down

0 comments on commit 31ee3db

Please sign in to comment.