Fix nodeSelector condition in probe.yaml to prioritize local variable over global value

This commit is contained in:
Simon Larsen 2024-09-24 13:35:11 +01:00
parent 7b02c6dd44
commit e5dcec62fc
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA

View File

@ -35,7 +35,9 @@ spec:
{{- if $.Values.tolerations }} {{- if $.Values.tolerations }}
tolerations: {{- $.Values.tolerations | toYaml | nindent 8 }} tolerations: {{- $.Values.tolerations | toYaml | nindent 8 }}
{{- end }} {{- end }}
{{- if $.Values.nodeSelector }} {{- if $val.nodeSelector }}
nodeSelector: {{- $val.nodeSelector | toYaml | nindent 8 }}
{{- else if $.Values.nodeSelector }}
nodeSelector: {{- $.Values.nodeSelector | toYaml | nindent 8 }} nodeSelector: {{- $.Values.nodeSelector | toYaml | nindent 8 }}
{{- end }} {{- end }}
containers: containers: