Skip to content

Commit

Permalink
[kube-prometheus-stack] fix prometheus operator deployment template b…
Browse files Browse the repository at this point in the history
…y wrapping nullable values (#3812)

Signed-off-by: Markus Müllner <[email protected]>
  • Loading branch information
mmianl committed Sep 20, 2023
1 parent 724e34b commit 0456492
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,22 +91,22 @@ spec:
{{- else }}
- --prometheus-config-reloader={{ $configReloaderRegistry }}/{{ .Values.prometheusOperator.prometheusConfigReloader.image.repository }}:{{ .Values.prometheusOperator.prometheusConfigReloader.image.tag | default .Chart.AppVersion }}
{{- end }}
{{- if .Values.prometheusOperator.prometheusConfigReloader.resources.requests.cpu }}
{{- if (((.Values.prometheusOperator.prometheusConfigReloader.resources).requests).cpu) }}
- --config-reloader-cpu-request={{ .Values.prometheusOperator.prometheusConfigReloader.resources.requests.cpu }}
{{- else }}
- --config-reloader-cpu-request=0
{{- end }}
{{- if .Values.prometheusOperator.prometheusConfigReloader.resources.limits.cpu }}
{{- if (((.Values.prometheusOperator.prometheusConfigReloader.resources).limits).cpu) }}
- --config-reloader-cpu-limit={{ .Values.prometheusOperator.prometheusConfigReloader.resources.limits.cpu }}
{{- else }}
- --config-reloader-cpu-limit=0
{{- end }}
{{- if .Values.prometheusOperator.prometheusConfigReloader.resources.requests.memory }}
{{- if (((.Values.prometheusOperator.prometheusConfigReloader.resources).requests).memory) }}
- --config-reloader-memory-request={{ .Values.prometheusOperator.prometheusConfigReloader.resources.requests.memory }}
{{- else }}
- --config-reloader-memory-request=0
{{- end }}
{{- if .Values.prometheusOperator.prometheusConfigReloader.resources.limits.memory }}
{{- if (((.Values.prometheusOperator.prometheusConfigReloader.resources).limits).memory) }}
- --config-reloader-memory-limit={{ .Values.prometheusOperator.prometheusConfigReloader.resources.limits.memory }}
{{- else }}
- --config-reloader-memory-limit=0
Expand Down

0 comments on commit 0456492

Please sign in to comment.