flagger icon indicating copy to clipboard operation
flagger copied to clipboard

Flexibility to control steps during deployment

Open pereiratps opened this issue 2 years ago • 0 comments

Describe the feature

What problem are you trying to solve?

I'd like to start using canary deployment. The flagger manifests management is awsome, but I would like the flexibility to choose the percentage between versions during analysis. I would also like not to have a deadline to finalize the deployment.

Proposed solution

What do you want to happen? Add any considered drawbacks.

It would be great to have something to interact with flagger and trigger the actions. It could be something like an API.

For example:

  1. Canary detect changes and prepare environment
  2. Human Controll:
  1. curl POST /route: {"canary": "10"}
  2. Human validate all data and monitoring systems
  3. curl POST /route { "canary": "30"}
  4. If error: curl POST /route { "canary": "10"}
  5. Human analyse... (indefinitely)
  6. If confirmed need for rollback: curl POST /rollback
  7. If success confirmed: curl POST /promote
  1. Flagger finalize deployment, based on the endpoint call

Any alternatives you've considered?

Is there another way to solve this problem that isn't as good a solution?

pereiratps avatar Jul 28 '23 21:07 pereiratps