We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5066f16 commit cc667d9Copy full SHA for cc667d9
1 file changed
platform/modules/prometheus-instance/chart/templates/prometheus.yaml
@@ -159,8 +159,8 @@ spec:
159
{{- end }}
160
{{- if or .Values.prometheus.spec.podAntiAffinity .Values.prometheus.spec.affinity }}
161
affinity:
162
- {{- if .Values.prometheus.spec.affinity }}
163
- {{ toYaml .Values.prometheus.spec.affinity | indent 4 }}
+ {{- if .Values.prometheus.spec.affinity -}}
+ {{ toYaml .Values.prometheus.spec.affinity | nindent 4 }}
164
165
{{- if eq .Values.prometheus.spec.podAntiAffinity "hard" }}
166
podAntiAffinity:
0 commit comments