Allow a result that indicates the reconciliation is incomplete and does not trigger the exponential backoff logic

Aperta
#617 29 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go

Direzione di ricerca

Inizia leggendo pkg/internal/controller/controller.go intorno alle righe 214-235, soprattutto il modo in cui RequeueAfter, Requeue e gli errori influiscono sull’accodamento. Segui la gestione del risultato e il flusso di reconciliation circostante per determinare dove un risultato incompleto potrebbe evitare un nuovo accodamento mentre i watches attivano richieste future. Il lavoro è completo quando il comportamento per una reconciliation incompleta senza Requeue esplicito o esponenziale è definito e coperto.

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

Descrizione

help wanted kind/design kind/feature lifecycle/frozen priority/important-longterm

After discussing this with @detiber, we realized there's no good solution for the following case:

  • A request is received
  • The request cannot proceed because of a missing dependency on resource A
  • The reconciler is watching events for resource A
  • The reconciler returns a result that indicates the reconciliation is incomplete due to reason X, but the request should not be requeued

Instead the current logic is:

  • A reconciler is using one or more watches to trigger requests
  • A request cannot proceed due to a missing dependency
  • If result.RequeueAfter > 0 then the request is added to the queue for processing after the value specified by result.RequeueAfter
  • If result.Requeue is true then the request is added to the queue with the same exponential backoff logic used when an error is returned
  • If an error is returned then the request is added to the queue with the exponential backoff logic

Today there is currently no way to indicate a reconciliation is incomplete without also having the request requeued by the manager either via an explicit amount of time or the exponential backoff logic (due to error or Requeue == true).

There should be a way to signal:

  • The reconciliation is incomplete
  • Do not requeue, the reconciler is watching the resources necessary to trigger its own events

Thanks!

Lingua principale
Go
Stelle
3k
Fork
1.3k
Merge medio
1g 7h
PR unite (30g)
48

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 kubernetes-sigs/controller-runtime

Tutte le issue di kubernetes-sigs/controller-runtime

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.