fix socketAlternate names throwing an error if set to an empty list (#678)

Signed-off-by: Daniel Schlatter <[email protected]>
Co-authored-by: kfox1111 <[email protected]>
This commit is contained in:
Daniel Schlatter
2025-10-13 10:11:53 -07:00
committed by GitHub
co-authored by kfox1111
parent 54024730d0
commit 41bd5b9598
@@ -179,7 +179,7 @@ spec:
mountPath: /tpm
imagePullPolicy: {{ .Values.nodeAttestor.tpmDirect.plugin.image.pullPolicy | quote }}
{{- end }}
{{- if gt (len $socketAlternateNames) 0 }}
{{- if $socketAlternateNames }}
- name: ensure-alternate-names
image: {{ template "spire-lib.image" (dict "image" .Values.socketAlternate.image "global" .Values.global) }}
imagePullPolicy: {{ .Values.socketAlternate.image.pullPolicy | quote }}