Skip to content

Commit 3803405

Browse files
stevekuznetsovci-robot
authored andcommitted
deploy: use Recreate strategy for Deployments (#3133)
Our controllers must not share runtime with controllers of previous versions, as we expect that the set of actors on the cluster to be coherent with respect to what they're trying to do. RollingUpdate strategies do not guarantee this and lead to cases where previous versions of the operators issue spurious mutating calls that the current operator needs to un-do. Signed-off-by: Steve Kuznetsov <[email protected]> Upstream-repository: operator-lifecycle-manager Upstream-commit: cee062283539d08f25333bfa53b2963725e35914
1 parent efa8047 commit 3803405

6 files changed

+6
-6
lines changed

manifests/0000_50_olm_07-olm-operator.deployment.ibm-cloud-managed.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
capability.openshift.io/name: "OperatorLifecycleManager"
1111
spec:
1212
strategy:
13-
type: RollingUpdate
13+
type: Recreate
1414
replicas: 1
1515
selector:
1616
matchLabels:

manifests/0000_50_olm_07-olm-operator.deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
capability.openshift.io/name: "OperatorLifecycleManager"
1111
spec:
1212
strategy:
13-
type: RollingUpdate
13+
type: Recreate
1414
replicas: 1
1515
selector:
1616
matchLabels:

manifests/0000_50_olm_08-catalog-operator.deployment.ibm-cloud-managed.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
capability.openshift.io/name: "OperatorLifecycleManager"
1111
spec:
1212
strategy:
13-
type: RollingUpdate
13+
type: Recreate
1414
replicas: 1
1515
selector:
1616
matchLabels:

manifests/0000_50_olm_08-catalog-operator.deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
capability.openshift.io/name: "OperatorLifecycleManager"
1111
spec:
1212
strategy:
13-
type: RollingUpdate
13+
type: Recreate
1414
replicas: 1
1515
selector:
1616
matchLabels:

staging/operator-lifecycle-manager/deploy/chart/templates/0000_50_olm_07-olm-operator.deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
app: olm-operator
88
spec:
99
strategy:
10-
type: RollingUpdate
10+
type: Recreate
1111
replicas: {{ .Values.olm.replicaCount }}
1212
selector:
1313
matchLabels:

staging/operator-lifecycle-manager/deploy/chart/templates/0000_50_olm_08-catalog-operator.deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
app: catalog-operator
88
spec:
99
strategy:
10-
type: RollingUpdate
10+
type: Recreate
1111
replicas: {{ .Values.catalog.replicaCount }}
1212
selector:
1313
matchLabels:

0 commit comments

Comments
 (0)