Reconsider treatment of "!exists?" in KubernetesResource classes

Aperta
#347 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
kubernetes, ruby

Direzione di ricerca

Start by locating the KubernetesResource classes and the handling of the !exists? status, then inspect how API errors distinguish 404 responses from other failures. Done means a 404 marks the resource absent and fails immediately, while other API errors retain their appropriate behavior.

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

Descrizione

:hammer_and_wrench: sustainability

Currently, this status is set if we get any kind of error from the API server (404 or otherwise) and is assumed to be transient. A more sensible approach might be to explicitly set @exists = false on a 404 and consider the resource to have failed immediately when we see that. If the API server has no record of it after the creation request, it isn't going to spontaneously appear. If that happens because the user deleted the resource immediately out of band, optimistically polling until the timeout seems like the wrong behaviour.

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.