Skip to content

Commit 03451f1

Browse files
author
Ciprian S.C.
committed
Support controlling Rolling Update for Operator
1 parent eb928c7 commit 03451f1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

charts/redis-operator/templates/operator-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ metadata:
66
namespace: {{ .Release.Namespace }}
77
labels: {{- include "redisOperator.labels" . | nindent 4 }}
88
spec:
9+
strategy:
10+
{{- toYaml .Values.redisOperator.strategy | nindent 4 }}
911
replicas: {{ .Values.replicas }}
1012
selector:
1113
matchLabels: {{- include "redisOperator.selectorLabels" . | nindent 6 }}

charts/redis-operator/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ redisOperator:
1111
imagePullPolicy: Always
1212
imagePullSecrets: []
1313

14+
# Update strategy
15+
# strategy:
16+
# type: RollingUpdate
17+
# rollingUpdate:
18+
# maxSurge: 25%
19+
# maxUnavailable: 25%
20+
strategy: {}
21+
1422
# Additional pod annotations
1523
podAnnotations: {}
1624
# Additional Pod labels (e.g. for filtering Pod by custom labels)

0 commit comments

Comments
 (0)