Skip to content

Commit cc667d9

Browse files
committed
Fix helm template with affinity block
1 parent 5066f16 commit cc667d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

platform/modules/prometheus-instance/chart/templates/prometheus.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ spec:
159159
{{- end }}
160160
{{- if or .Values.prometheus.spec.podAntiAffinity .Values.prometheus.spec.affinity }}
161161
affinity:
162-
{{- if .Values.prometheus.spec.affinity }}
163-
{{ toYaml .Values.prometheus.spec.affinity | indent 4 }}
162+
{{- if .Values.prometheus.spec.affinity -}}
163+
{{ toYaml .Values.prometheus.spec.affinity | nindent 4 }}
164164
{{- end }}
165165
{{- if eq .Values.prometheus.spec.podAntiAffinity "hard" }}
166166
podAntiAffinity:

0 commit comments

Comments
 (0)