Skip to content

Commit f3fac64

Browse files
authored
Allow changing the deploy.spec.strategy for helm chart (#96)
Signed-off-by: Jirka Kremser <jiri.kremser@gmail.com>
1 parent ec561fd commit f3fac64

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

helmchart/otel-add-on/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ spec:
1010
selector:
1111
matchLabels:
1212
{{- include "otel-add-on.selectorLabels" . | nindent 6 }}
13+
{{- if eq .Values.deploymentStrategy "Recreate" }}
14+
strategy:
15+
type: Recreate
16+
{{- end }}
1317
template:
1418
metadata:
1519
{{- with .Values.podAnnotations }}

helmchart/otel-add-on/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ settings:
5353
# -- if anything else than 'false', the log will not print the ascii logo
5454
noBanner: false
5555

56+
# -- one of: RollingUpdate, Recreate ([details](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy))
57+
deploymentStrategy: RollingUpdate
58+
5659
validatingAdmissionPolicy:
5760
# -- whether the ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding resources should be also rendered
5861
enabled: true

0 commit comments

Comments
 (0)