Add default dict for pod anti affinity snippet
In case if anti affinity type is empty or doesn't match with expected values return an empty dict to maintain valid yaml structure. Change-Id: Id056a028a4ba56a6a1ebc244524e77b19106371e Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
This commit is contained in:
@@ -85,5 +85,7 @@ podAntiAffinity:
|
||||
matchExpressions:
|
||||
{{ $matchExpressions | indent 8 }}
|
||||
topologyKey: {{ $antiAffinityKey }}
|
||||
{{- else }}
|
||||
{}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
Reference in New Issue
Block a user