Skip to content

Commit 2d560be

Browse files
committed
UPSTREAM: <carry>: add rollingUpdate strategy
1 parent c911522 commit 2d560be

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

helm/olmv1/templates/deployment-olmv1-system-catalogd-controller-manager.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ metadata:
1313
spec:
1414
minReadySeconds: 5
1515
replicas: 1
16+
strategy:
17+
type: RollingUpdate
18+
rollingUpdate:
19+
maxSurge: 1 # Allow temporary 2 pods (1 + 1) for zero-downtime updates
20+
maxUnavailable: 0 # Never allow pods to be unavailable during updates
1621
selector:
1722
matchLabels:
1823
control-plane: catalogd-controller-manager

helm/olmv1/templates/deployment-olmv1-system-operator-controller-controller-manager.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ metadata:
1212
namespace: {{ .Values.namespaces.olmv1.name }}
1313
spec:
1414
replicas: 1
15+
strategy:
16+
type: RollingUpdate
17+
rollingUpdate:
18+
maxSurge: 1 # Allow temporary 2 pods (1 + 1) for zero-downtime updates
19+
maxUnavailable: 0 # Never allow pods to be unavailable during updates
1520
selector:
1621
matchLabels:
1722
control-plane: operator-controller-controller-manager

openshift/catalogd/manifests-experimental.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,11 @@ metadata:
835835
spec:
836836
minReadySeconds: 5
837837
replicas: 1
838+
strategy:
839+
type: RollingUpdate
840+
rollingUpdate:
841+
maxSurge: 1 # Allow temporary 2 pods (1 + 1) for zero-downtime updates
842+
maxUnavailable: 0 # Never allow pods to be unavailable during updates
838843
selector:
839844
matchLabels:
840845
control-plane: catalogd-controller-manager

openshift/operator-controller/manifests-experimental.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,6 +1285,11 @@ metadata:
12851285
namespace: openshift-operator-controller
12861286
spec:
12871287
replicas: 1
1288+
strategy:
1289+
type: RollingUpdate
1290+
rollingUpdate:
1291+
maxSurge: 1 # Allow temporary 2 pods (1 + 1) for zero-downtime updates
1292+
maxUnavailable: 0 # Never allow pods to be unavailable during updates
12881293
selector:
12891294
matchLabels:
12901295
control-plane: operator-controller-controller-manager

0 commit comments

Comments
 (0)