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:
Ruslan Aliev
2025-04-28 15:34:19 -05:00
parent a81d150329
commit 6433ef03b1

View File

@@ -85,5 +85,7 @@ podAntiAffinity:
matchExpressions:
{{ $matchExpressions | indent 8 }}
topologyKey: {{ $antiAffinityKey }}
{{- else }}
{}
{{- end -}}
{{- end -}}