Skip to content

Commit 38fd18b

Browse files
Merge pull request #2013 from Thushani-Jayasekera/helm-issue
refactor(gateway): simplify volume mount and volume handling in deployment.yaml
2 parents 943c653 + d2b2717 commit 38fd18b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • kubernetes/helm/gateway-helm-chart/templates/gateway/controller

kubernetes/helm/gateway-helm-chart/templates/gateway/controller/deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ spec:
170170
mountPath: {{ $controller.encryptionKeys.mountPath }}
171171
readOnly: true
172172
{{- end }}
173-
{{- range $deployment.extraVolumeMounts }}
174-
- {{- toYaml . | nindent 12 }}
173+
{{- with $deployment.extraVolumeMounts }}
174+
{{- toYaml . | nindent 12 }}
175175
{{- end }}
176176
volumes:
177177
- name: controller-data
@@ -217,7 +217,7 @@ spec:
217217
secret:
218218
secretName: {{ $controller.encryptionKeys.secretName }}
219219
{{- end }}
220-
{{- range $deployment.extraVolumes }}
221-
- {{- toYaml . | nindent 10 }}
220+
{{- with $deployment.extraVolumes }}
221+
{{- toYaml . | nindent 8 }}
222222
{{- end }}
223223
{{- end }}

0 commit comments

Comments
 (0)