Add support for specifying update strategy
This commit is contained in:
parent
c3c8f25c62
commit
4b245b1d09
|
@ -32,6 +32,17 @@
|
||||||
- "Always"
|
- "Always"
|
||||||
- "Never"
|
- "Never"
|
||||||
|
|
||||||
|
# Update strategy
|
||||||
|
- variable: updateStrategy
|
||||||
|
description: "Upgrade Policy"
|
||||||
|
label: "Update Strategy"
|
||||||
|
schema:
|
||||||
|
- type: string
|
||||||
|
default: "RollingUpdate"
|
||||||
|
enum:
|
||||||
|
- "RollingUpdate"
|
||||||
|
- "Recreate"
|
||||||
|
|
||||||
# Configurable CMD / Entrypoint / Environment Variables
|
# Configurable CMD / Entrypoint / Environment Variables
|
||||||
- variable: containerCommand
|
- variable: containerCommand
|
||||||
description: "Commands to execute inside container overriding image CMD default"
|
description: "Commands to execute inside container overriding image CMD default"
|
||||||
|
|
|
@ -18,6 +18,7 @@ spec:
|
||||||
k8s.v1.cni.cncf.io/networks: {{ join ", " .Values.ixExternalInterfacesConfigurationNames }}
|
k8s.v1.cni.cncf.io/networks: {{ join ", " .Values.ixExternalInterfacesConfigurationNames }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
strategy: {{ .Values.updateStrategy }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
{{- if or .Values.hostPathVolumes .Values.persistentVolumeClaims }}
|
{{- if or .Values.hostPathVolumes .Values.persistentVolumeClaims }}
|
||||||
|
|
|
@ -6,6 +6,10 @@ image:
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: "testing"
|
tag: "testing"
|
||||||
|
|
||||||
|
|
||||||
|
# Update strategy
|
||||||
|
updateStrategy: "RollingUpdate"
|
||||||
|
|
||||||
# Container CMD / entrypoint
|
# Container CMD / entrypoint
|
||||||
containerCommand: []
|
containerCommand: []
|
||||||
containerArgs: []
|
containerArgs: []
|
||||||
|
|
Loading…
Reference in New Issue