-
Notifications
You must be signed in to change notification settings - Fork 114
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
Add support for OnDelete
update strategy when checking for a successful deploy
#912
Comments
One note: There is a bug in K8s currently where for Statefulsets with an update strategy of OnDelete, the
Once the PR with the fix is merged, the same existing logic used for As indicated with the checkbox, I am more than happy to work on this |
We seem to have agreement on adding this behind a flag. The flag used when discussing was |
I suggest extending the |
The current possible annotation values are as follows:
We don't believe Any recommendations for a new definition to use for
|
In this PR, I've updated krane to support checking for successful StatefulSet deploys when Now, for all StatefulSets, krane checks the following to confirm a successful deploy:
For
For For
|
Feature request
Proposal:
For the
OnDelete
update strategy when checking for a successful deploy usingdeploy_succeeded?
,krane
does not check if the rollout is successful and instead prints a warning message and moves on. The message given is:# Gem cannot monitor update since it doesn't occur until delete
.OnDelete
, there is nothing in place to roll the pods which is not always true. Ex. K8s operators used to rollout pods can use theOnDelete
strategy to control the order of pod updates.deploy_succeeded?
inkrane
simply checks if all pods are on the updated revision and ready, the same logical check works forOnDelete
, and so updates can still be monitored. (It's still useful to print a WARN saying OnDelete requires pod deletes.)I propose that
krane
should support checking for a deploy being successful when the update strategy inOnDelete
and prints a warning message to inform the user that pods have to be deleted to be updated.A project at Shopify would already benefit from this addition. This project is used to control how pods of a statefulsets are updated by updating all pods in a zone and uses the
OnDelete
strategy. By allowing to watch for successful deploys, this will allowkrane
andshipit/buildkite
pipelines at Shopify to work seamlessly. Currently if we useOnDelete
, shipit is unable to track the status of the deploy.The text was updated successfully, but these errors were encountered: