Skip to content

Commit 9db4e08

Browse files
committed
replace with with if
1 parent 01fe6ae commit 9db4e08

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

charts/aws-fsx-csi-driver/templates/controller-deployment.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ spec:
1919
labels:
2020
app: fsx-csi-controller
2121
{{- include "aws-fsx-csi-driver.labels" . | nindent 8 }}
22-
{{- with .Values.controller.podLabels }}
23-
{{- toYaml . | nindent 8 }}
22+
{{- if .Values.controller.podLabels }}
23+
{{- toYaml .Values.controller.podLabels | nindent 8 }}
2424
{{- end }}
2525
spec:
2626
{{- if .Values.imagePullSecrets }}

charts/aws-fsx-csi-driver/templates/node-daemonset.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ spec:
1818
labels:
1919
app: fsx-csi-node
2020
{{- include "aws-fsx-csi-driver.labels" . | nindent 8 }}
21-
{{- with .Values.node.podLabels }}
22-
{{- toYaml . | nindent 8 }}
21+
{{- if .Values.node.podLabels }}
22+
{{- toYaml .Values.node.podLabels | nindent 8 }}
2323
{{- end }}
2424
spec:
2525
{{- if .Values.imagePullSecrets }}

0 commit comments

Comments
 (0)