Skip to content

Commit cee0622

Browse files
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]>
1 parent d70de07 commit cee0622

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
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:

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

+1-1
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)