Skip to content

Commit

Permalink
fix(operator yaml): update deployment upgrade strategy as Recreate (o…
Browse files Browse the repository at this point in the history
…penebs#2709)

* Updates the upgrade strategy to Recreate both in operator and helm templates
* remove the unused values in helm values.yaml

Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
  • Loading branch information
sai chaithanya authored and kmova committed Aug 16, 2019
1 parent dd2f032 commit 54a2684
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 5 deletions.
3 changes: 3 additions & 0 deletions k8s/charts/openebs/templates/deployment-admission-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ metadata:
openebs.io/version: {{ .Values.release.version }}
spec:
replicas: {{ .Values.webhook.replicas }}
strategy:
type: "Recreate"
rollingUpdate: null
selector:
matchLabels:
app: admission-webhook
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ metadata:
openebs.io/component-name: openebs-localpv-provisioner
openebs.io/version: {{ .Values.release.version }}
spec:
replicas: {{ .Values.provisioner.replicas }}
replicas: {{ .Values.localprovisioner.replicas }}
strategy:
type: "Recreate"
rollingUpdate: null
selector:
matchLabels:
app: {{ template "openebs.name" . }}
Expand Down
3 changes: 3 additions & 0 deletions k8s/charts/openebs/templates/deployment-maya-apiserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ metadata:
openebs.io/version: {{ .Values.release.version }}
spec:
replicas: {{ .Values.apiserver.replicas }}
strategy:
type: "Recreate"
rollingUpdate: null
selector:
matchLabels:
app: {{ template "openebs.name" . }}
Expand Down
3 changes: 3 additions & 0 deletions k8s/charts/openebs/templates/deployment-maya-provisioner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ metadata:
openebs.io/version: {{ .Values.release.version }}
spec:
replicas: {{ .Values.provisioner.replicas }}
strategy:
type: "Recreate"
rollingUpdate: null
selector:
matchLabels:
app: {{ template "openebs.name" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ spec:
app: {{ template "openebs.name" . }}
release: {{ .Release.Name }}
strategy:
type: {{ .Values.snapshotOperator.upgradeStrategy }}
type: "Recreate"
rollingUpdate: null
template:
metadata:
labels:
Expand Down
3 changes: 2 additions & 1 deletion k8s/charts/openebs/templates/deployment-ndm-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ metadata:
spec:
replicas: {{ .Values.ndmOperator.replicas }}
strategy:
type: {{ .Values.ndmOperator.upgradeStrategy }}
type: "Recreate"
rollingUpdate: null
selector:
matchLabels:
app: {{ template "openebs.name" . }}
Expand Down
2 changes: 0 additions & 2 deletions k8s/charts/openebs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ snapshotOperator:
image: "quay.io/openebs/snapshot-provisioner"
imageTag: "1.1.0"
replicas: 1
upgradeStrategy: "Recreate"
nodeSelector: {}
tolerations: []
affinity: {}
Expand Down Expand Up @@ -99,7 +98,6 @@ ndmOperator:
image: "quay.io/openebs/node-disk-operator-amd64"
imageTag: "v0.4.1"
replicas: 1
upgradeStrategy: Recreate
nodeSelector: {}
tolerations: []
readinessCheck:
Expand Down
9 changes: 9 additions & 0 deletions k8s/openebs-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ spec:
name: maya-apiserver
openebs.io/component-name: maya-apiserver
replicas: 1
strategy:
type: Recreate
rollingUpdate: null
template:
metadata:
labels:
Expand Down Expand Up @@ -217,6 +220,9 @@ spec:
name: openebs-provisioner
openebs.io/component-name: openebs-provisioner
replicas: 1
strategy:
type: Recreate
rollingUpdate: null
template:
metadata:
labels:
Expand Down Expand Up @@ -565,6 +571,9 @@ metadata:
openebs.io/version: dev
spec:
replicas: 1
strategy:
type: Recreate
rollingUpdate: null
selector:
matchLabels:
app: admission-webhook
Expand Down

0 comments on commit 54a2684

Please sign in to comment.