Skip to content

Commit

Permalink
Bug Fix: Incorrect root scope within the with statement
Browse files Browse the repository at this point in the history
Signed-off-by: Itay Grudev <[email protected]>
  • Loading branch information
itay-grudev committed Oct 15, 2024
1 parent 0fb3512 commit af15996
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions charts/cluster/templates/pooler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ spec:
{{- end }}
{{ with .monitoring }}
monitoring:
{{- if not (empty .monitoring.podMonitor) }}
enablePodMonitor: {{ and .monitoring.enabled .monitoring.podMonitor.enabled }}
{{- with .monitoring.podMonitor.relabelings }}
{{- if not (empty .podMonitor) }}
enablePodMonitor: {{ and .enabled .podMonitor.enabled }}
{{- with .podMonitor.relabelings }}
podMonitorRelabelings:
{{- toYaml . | nindent 6 }}
{{ end }}
{{- with .monitoring.podMonitor.metricRelabelings }}
{{- with .podMonitor.metricRelabelings }}
podMonitorMetricRelabelings:
{{- toYaml . | nindent 6 }}
{{ end }}
Expand Down

0 comments on commit af15996

Please sign in to comment.