diff --git a/charts/cloudnative-pg/templates/podmonitor.yaml b/charts/cloudnative-pg/templates/podmonitor.yaml index e294f2f90..bae86ca8d 100644 --- a/charts/cloudnative-pg/templates/podmonitor.yaml +++ b/charts/cloudnative-pg/templates/podmonitor.yaml @@ -1,11 +1,11 @@ -{{- if .Values.monitoring.podMonitor.enabled }} +{{- if .Values.monitoring.podMonitorEnabled }} apiVersion: monitoring.coreos.com/v1 kind: PodMonitor metadata: name: {{ include "cloudnative-pg.fullname" . }} labels: {{- include "cloudnative-pg.labels" . | nindent 4 }} - {{- with .Values.monitoring.podMonitor.additionalLabels }} + {{- with .Values.monitoring.podMonitorAdditionalLabels }} {{- toYaml . | nindent 4 }} {{- end}} {{- with .Values.commonAnnotations }} @@ -18,4 +18,4 @@ spec: {{- include "cloudnative-pg.selectorLabels" . | nindent 6 }} podMetricsEndpoints: - port: metrics -{{- end }} \ No newline at end of file +{{- end }}