Skip to content

Commit 585fd51

Browse files
committed
use with instead of if, for eliminate nil pointer
Signed-off-by: Dmitry Ponomaryov <[email protected]>
1 parent 240928d commit 585fd51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charts/tempo-distributed/templates/gateway/deployment-gateway.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ spec:
101101
securityContext:
102102
{{- toYaml . | nindent 12 }}
103103
{{- end }}
104-
{{- if .Values.gateway.extraContainers }}
104+
{{- with .Values.gateway.extraContainers }}
105105
{{- toYaml .Values.gateway.extraContainers | nindent 8 }}
106106
{{- end }}
107107
{{- if semverCompare ">= 1.19-0" .Capabilities.KubeVersion.Version }}

0 commit comments

Comments
 (0)