Don't instantly fail if redeploying a Deployment past PDS

Aperta
#620 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
kubernetes, ruby
Ambito
cli, devops

Direzione di ricerca

The issue names no files, tests, or entry points. Start by locating the deployment-watch handling for progressDeadlineExceeded, then compare the proposed warning-and-continued-watch behavior with the redeploy-detection alternative; done means choosing and implementing a defined behavior that avoids an immediate failure while still respecting the global timeout.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

:sparkles: enhancement

Proposal:

Currently, if someone attempts to redeploy a deployment in the state progressDeadlineExceeded, we instantly fail the deploy. In general, this leads users to think their deploy is fundamentally broken and will not succeed. For the most part, this error is usually indicative of slow cluster operations, and deploys will (eventually) be successful. I propose it would be a better user experience if we handled this case a little more gracefully.

Alternative 1

If the apply of a deployment results in a change to its spec, the status field is cleared and the progressing status is set to true. On redeploy, if we are able to see that apply does nothing and that progressing == false, we know we are in a situation where we are trying to rewatch an in-flight deployment. Coding this has several issues:

  • There is no 'lastUpdated' field for the most recent change -> we don't know if we're seeing a new deploy.
  • It's difficult to initially observe the Deployment resource to know if it is already in progressDeadlineExceeded, and also difficult to pass that information nicely to the resource object being watched.

One approach could be to look at deploy_started_at and see if it's been at least progressDeadlineSeconds. If so, we know we're in the case where we're watching a redeploy.

Alternative 2

Instead of failing the deploy when progressDeadlineExceeded, we could issue a warning, but continue to watch. If we exceed the global timeout, we can then raise a fatal deployment error as normal.

Lingua principale
Ruby
Stelle
1.4k
Fork
119
Merge medio
1h 7m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Shopify/krane

Tutte le issue di Shopify/krane

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.