Skip to content

Commit 4b0b0e3

Browse files
authored
add deployment.strategy to chart (#599)
Description of changes: Add the ability to set the deployment's update strategy via chart values. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent f23cc18 commit 4b0b0e3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

templates/helm/templates/deployment.yaml.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,6 @@ spec:
204204
{{ "{{- if .Values.deployment.extraVolumes }}" }}
205205
{{ "{{ toYaml .Values.deployment.extraVolumes | indent 8}}" }}
206206
{{ "{{- end }}" }}
207+
{{ " {{- with .Values.deployment.strategy }}" }}
208+
strategy: {{ "{{- toYaml . | nindent 4 }}" }}
209+
{{ " {{- end }}" }}

templates/helm/values.yaml.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ deployment:
4141
# To have DNS options set along with hostNetwork, you have to specify DNS policy
4242
# explicitly to 'ClusterFirstWithHostNet'.
4343
dnsPolicy: ClusterFirst
44+
# Set rollout strategy for deployment.
45+
# See: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
46+
strategy: {}
4447
extraVolumes: []
4548
extraVolumeMounts: []
4649

0 commit comments

Comments
 (0)