From 9e5978e50486176363251ef6ddb660a4ca70c32e Mon Sep 17 00:00:00 2001 From: Jian Zhang Date: Mon, 13 Oct 2025 09:05:24 +0800 Subject: [PATCH] add rollingUpdate strategy Signed-off-by: Jian Zhang --- ...oyment-olmv1-system-catalogd-controller-manager.yml | 5 +++++ ...1-system-operator-controller-controller-manager.yml | 5 +++++ manifests/experimental-e2e.yaml | 10 ++++++++++ manifests/experimental.yaml | 10 ++++++++++ manifests/standard-e2e.yaml | 10 ++++++++++ manifests/standard.yaml | 10 ++++++++++ 6 files changed, 50 insertions(+) diff --git a/helm/olmv1/templates/deployment-olmv1-system-catalogd-controller-manager.yml b/helm/olmv1/templates/deployment-olmv1-system-catalogd-controller-manager.yml index 20cc698c2e..7ab3f1bf51 100644 --- a/helm/olmv1/templates/deployment-olmv1-system-catalogd-controller-manager.yml +++ b/helm/olmv1/templates/deployment-olmv1-system-catalogd-controller-manager.yml @@ -13,6 +13,11 @@ metadata: spec: minReadySeconds: 5 replicas: 1 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 # Allow temporary 2 pods (1 + 1) for zero-downtime updates + maxUnavailable: 0 # Never allow pods to be unavailable during updates selector: matchLabels: control-plane: catalogd-controller-manager diff --git a/helm/olmv1/templates/deployment-olmv1-system-operator-controller-controller-manager.yml b/helm/olmv1/templates/deployment-olmv1-system-operator-controller-controller-manager.yml index a62558f8ea..c3248a9a1e 100644 --- a/helm/olmv1/templates/deployment-olmv1-system-operator-controller-controller-manager.yml +++ b/helm/olmv1/templates/deployment-olmv1-system-operator-controller-controller-manager.yml @@ -12,6 +12,11 @@ metadata: namespace: {{ .Values.namespaces.olmv1.name }} spec: replicas: 1 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 # Allow temporary 2 pods (1 + 1) for zero-downtime updates + maxUnavailable: 0 # Never allow pods to be unavailable during updates selector: matchLabels: control-plane: operator-controller-controller-manager diff --git a/manifests/experimental-e2e.yaml b/manifests/experimental-e2e.yaml index 1bc93321ef..8758f9df1b 100644 --- a/manifests/experimental-e2e.yaml +++ b/manifests/experimental-e2e.yaml @@ -2003,6 +2003,11 @@ metadata: spec: minReadySeconds: 5 replicas: 1 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 # Allow temporary 2 pods (1 + 1) for zero-downtime updates + maxUnavailable: 0 # Never allow pods to be unavailable during updates selector: matchLabels: control-plane: catalogd-controller-manager @@ -2148,6 +2153,11 @@ metadata: namespace: olmv1-system spec: replicas: 1 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 # Allow temporary 2 pods (1 + 1) for zero-downtime updates + maxUnavailable: 0 # Never allow pods to be unavailable during updates selector: matchLabels: control-plane: operator-controller-controller-manager diff --git a/manifests/experimental.yaml b/manifests/experimental.yaml index 69128a8b7b..4ab77d1ffd 100644 --- a/manifests/experimental.yaml +++ b/manifests/experimental.yaml @@ -1928,6 +1928,11 @@ metadata: spec: minReadySeconds: 5 replicas: 1 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 # Allow temporary 2 pods (1 + 1) for zero-downtime updates + maxUnavailable: 0 # Never allow pods to be unavailable during updates selector: matchLabels: control-plane: catalogd-controller-manager @@ -2061,6 +2066,11 @@ metadata: namespace: olmv1-system spec: replicas: 1 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 # Allow temporary 2 pods (1 + 1) for zero-downtime updates + maxUnavailable: 0 # Never allow pods to be unavailable during updates selector: matchLabels: control-plane: operator-controller-controller-manager diff --git a/manifests/standard-e2e.yaml b/manifests/standard-e2e.yaml index 72f8b82dcf..783beec515 100644 --- a/manifests/standard-e2e.yaml +++ b/manifests/standard-e2e.yaml @@ -1762,6 +1762,11 @@ metadata: spec: minReadySeconds: 5 replicas: 1 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 # Allow temporary 2 pods (1 + 1) for zero-downtime updates + maxUnavailable: 0 # Never allow pods to be unavailable during updates selector: matchLabels: control-plane: catalogd-controller-manager @@ -1906,6 +1911,11 @@ metadata: namespace: olmv1-system spec: replicas: 1 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 # Allow temporary 2 pods (1 + 1) for zero-downtime updates + maxUnavailable: 0 # Never allow pods to be unavailable during updates selector: matchLabels: control-plane: operator-controller-controller-manager diff --git a/manifests/standard.yaml b/manifests/standard.yaml index 75ee176f7f..95e400c264 100644 --- a/manifests/standard.yaml +++ b/manifests/standard.yaml @@ -1687,6 +1687,11 @@ metadata: spec: minReadySeconds: 5 replicas: 1 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 # Allow temporary 2 pods (1 + 1) for zero-downtime updates + maxUnavailable: 0 # Never allow pods to be unavailable during updates selector: matchLabels: control-plane: catalogd-controller-manager @@ -1819,6 +1824,11 @@ metadata: namespace: olmv1-system spec: replicas: 1 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 # Allow temporary 2 pods (1 + 1) for zero-downtime updates + maxUnavailable: 0 # Never allow pods to be unavailable during updates selector: matchLabels: control-plane: operator-controller-controller-manager