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

Use new CurrentImage field to prevent unintended upgrades. #236

Merged
merged 2 commits into from
Aug 9, 2018

Conversation

ewoutp
Copy link
Contributor

@ewoutp ewoutp commented Aug 9, 2018

Before a new Pod would always use the image given in the spec of an ArangoDeployment.
That could lead to scaling up to new (and unintended) versions.

With this PR a new current-image field is added to the status of an ArangoDeployment.
When a pod is created, the current-image is used. When upgrading, the current-image field is updated first, if confirmed that an upgrade is indeed allowed.

If an upgrade is not allowed, an event is added to the ArangoDeployment.

@ghost ghost assigned ewoutp Aug 9, 2018
@ghost ghost added the 2 - Working label Aug 9, 2018
@ewoutp ewoutp merged commit 0165f98 into master Aug 9, 2018
@ghost ghost removed the 2 - Working label Aug 9, 2018
@ewoutp ewoutp deleted the bugfix/safeguard-current-image branch August 9, 2018 10:46
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.

1 participant