Skip to content

Commit 7704d84

Browse files
ag2308arttor
authored andcommitted
Update examples/operator templates and values
1 parent 3e732b0 commit 7704d84

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

examples/operator/templates/deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ metadata:
77
{{- include "operator.labels" . | nindent 4 }}
88
spec:
99
replicas: {{ .Values.controllerManager.replicas }}
10+
strategy:
11+
rollingUpdate:
12+
maxSurge: {{ .Values.controllerManager.strategy.rollingUpdate.maxSurge | quote
13+
}}
14+
maxUnavailable: {{ .Values.controllerManager.strategy.rollingUpdate.maxUnavailable
15+
| quote }}
16+
type: {{ .Values.controllerManager.strategy.type | quote }}
1017
selector:
1118
matchLabels:
1219
control-plane: controller-manager

examples/operator/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ controllerManager:
4949
serviceAccount:
5050
annotations:
5151
k8s.acme.org/some-meta-data: ACME Inc.
52+
strategy:
53+
rollingUpdate:
54+
maxSurge: 25%
55+
maxUnavailable: 25%
56+
type: RollingUpdate
5257
kubernetesClusterDomain: cluster.local
5358
managerConfig:
5459
controllerManagerConfigYaml: |-

0 commit comments

Comments
 (0)