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:
co-authored by
kfox1111
parent
54024730d0
commit
41bd5b9598
@@ -179,7 +179,7 @@ spec:
|
|||||||
mountPath: /tpm
|
mountPath: /tpm
|
||||||
imagePullPolicy: {{ .Values.nodeAttestor.tpmDirect.plugin.image.pullPolicy | quote }}
|
imagePullPolicy: {{ .Values.nodeAttestor.tpmDirect.plugin.image.pullPolicy | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if gt (len $socketAlternateNames) 0 }}
|
{{- if $socketAlternateNames }}
|
||||||
- name: ensure-alternate-names
|
- name: ensure-alternate-names
|
||||||
image: {{ template "spire-lib.image" (dict "image" .Values.socketAlternate.image "global" .Values.global) }}
|
image: {{ template "spire-lib.image" (dict "image" .Values.socketAlternate.image "global" .Values.global) }}
|
||||||
imagePullPolicy: {{ .Values.socketAlternate.image.pullPolicy | quote }}
|
imagePullPolicy: {{ .Values.socketAlternate.image.pullPolicy | quote }}
|
||||||
|
|||||||
Reference in New Issue
Block a user