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

support gated rollback #420

Merged
merged 5 commits into from
Feb 6, 2020
Merged

support gated rollback #420

merged 5 commits into from
Feb 6, 2020

Conversation

ta924
Copy link
Contributor

@ta924 ta924 commented Jan 30, 2020

This PR adds support for gated rollbacks. I would like to propose this as an option to enable rollbacks based off webhooks when doing manual gating. During the reconciliation loop the controller would evaluate the status of the canary under review, if that status was in either waiting or progressing and a rollback webhook returned a 200 response it would trigger the rollback functionality.

Changes:
add RollbackHook HookType
codegen for client libraries to included HookType addition
move rollback functionality of the scheduler into method for re-use with failure scenarios and manual rollback
introduce runRollbackHooks method

Fix: #413

@ta924
Copy link
Contributor Author

ta924 commented Feb 1, 2020

If this approach proves acceptable, I will add updated to the docs as well

@stefanprodan
Copy link
Member

@ta924 this looks good, thanks! The hook type needs to be added to the CRD validation in artifacts, chart and kustomize. Looking forward to the docs updates.

@ta924
Copy link
Contributor Author

ta924 commented Feb 5, 2020

@stefanprodan thanks for the additional details, I have updated the CRD validations and started dropping in some verbiage around rollbacks. Should have that finalized today or tomorrow

Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @ta924 🏅

@stefanprodan stefanprodan merged commit e457b6d into fluxcd:master Feb 6, 2020
@stefanprodan stefanprodan mentioned this pull request Feb 6, 2020
@ta924 ta924 deleted the manualrollback branch February 6, 2020 17:48
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.

Provide the ability to manually rollback canary deployments
2 participants