microsoft / mindaro

Bridge to Kubernetes - for Visual Studio and Visual Studio Code
MIT License
307 stars 106 forks source link

Don't downgrade the deployment after Bridge has been stopped #252

Open bruno-brant opened 2 years ago

bruno-brant commented 2 years ago

Is your feature request related to a problem? Please describe. When working in an environment with multiple developers, it's usual to have deploys going on while people are debugging stuff. Right now, at least with my current CD approach which uses Helm, if someone happens to be using Bridge when a deployment is ran, we may lose that version.

I believe this is because Bridge will restore the deployment once the session is done (I've not analyzed this very deeply so please forgive if that's not exactly how it goes).

          deploys a new deployment
                       ↓
.......v1.............v2...............................v1
             ↓                                         ↑
          starts bridge                            ends brigde

Describe the solution you'd like Either the restoration job should respect updates in the deployment or maybe make it impossible for those deployments to happen.

amsoedal commented 2 years ago

Hi @bruno-brant, thanks for pointing this out. I can see how this would be annoying. Unfortunately we can't commit to a timeline for fixing this limitation in the near term. In the meantime, can you run your CD pipelines overnight or at times when people won't be debugging?