Skip to content

Commit a48349f

Browse files
author
Ciprian S.C.
committed
Support controlling Rolling Update for Operator
Signed-off-by: Ciprian S.C. <[email protected]>
1 parent eb928c7 commit a48349f

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

charts/redis-operator/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ kubectl create secret tls <webhook-server-cert> --key tls.key --cert tls.crt -n
124124
| redisOperator.pprof.bindAddress | string | `":6060"` | |
125125
| redisOperator.pprof.enabled | bool | `false` | |
126126
| redisOperator.serviceDNSDomain | string | `"cluster.local"` | The DNS domain suffix used for Kubernetes service discovery. Default is "cluster.local". Change this if your cluster uses a custom DNS domain. |
127+
| redisOperator.strategy | object | `{}` | |
127128
| redisOperator.watchNamespace | string | `""` | |
128129
| redisOperator.webhook | bool | `false` | |
129130
| replicas | int | `1` | |

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)