Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(operator yaml): update deployment upgrade strategy as Recreate #2709

Merged
merged 5 commits into from
Aug 16, 2019

Conversation

mittachaitu
Copy link

@mittachaitu mittachaitu commented Aug 14, 2019

Signed-off-by: mittachaitu sai.chaithanya@mayadata.io
This PR updates the control plane deployment upgrade strategy to Recreate.
When we set the upgrade strategy to Recreate deployment controller will
make sure during upgrade time(patching pod template spec) after deleting old pod
new pod with the changes will come to running state.

Which issue this PR fixes:
This PR fixes issue #2697

mittachaitu added 2 commits August 14, 2019 21:00
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
Copy link
Contributor

@vishnuitta vishnuitta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes are good

… as recreate

Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
Copy link
Contributor

@prateekpandey14 prateekpandey14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -12,6 +12,9 @@ metadata:
openebs.io/version: {{ .Values.release.version }}
spec:
replicas: {{ .Values.provisioner.replicas }}
strategy:
type: {{ .Values.provisioner.upgradeStrategy }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be changed to local PV provisioner. Also update the above replicas to use the localpvprovisioner (this has been fixed in upstream)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will update it

@@ -12,6 +12,9 @@ metadata:
openebs.io/version: {{ .Values.release.version }}
spec:
replicas: {{ .Values.webhook.replicas }}
strategy:
type: {{ .Values.webhook.upgradeStrategy }}
rollingUpdate: null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should rollingUpdate be set to null .. if the upgradeStrategy is set to Recreate. Having said that, should we even give this option to select the upgradeStrategy or hardcode it to "Recreate" ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will hardcode it to Recreate

mittachaitu added 2 commits August 16, 2019 20:44
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
…llingUpdate

Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
@kmova kmova merged commit 54a2684 into openebs:master Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants