Skip to content

Commit d57cc9d

Browse files
committed
chore: Replace if into with function
Signed-off-by: younsl <[email protected]>
1 parent dc65a09 commit d57cc9d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

helm/oauth2-proxy/templates/deployment.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,8 @@ spec:
285285
{{- end }}
286286
resources:
287287
{{ toYaml .Values.resources | indent 10 }}
288-
{{- if .Values.resizePolicy }}
289-
resizePolicy:
290-
{{ toYaml .Values.resizePolicy | indent 10 }}
288+
{{- with .Values.resizePolicy }}
289+
resizePolicy: {{ toYaml . | nindent 10 }}
291290
{{- end }}
292291
volumeMounts:
293292
{{- with .Values.config.google }}

0 commit comments

Comments
 (0)