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

Abierto
#617 29 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
30/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
go

Línea de trabajo

Empieza leyendo pkg/internal/controller/controller.go alrededor de las líneas 214-235, especialmente cómo RequeueAfter, Requeue y los errores afectan a la puesta en cola. Sigue el manejo del resultado y el flujo de reconciliation circundante para determinar dónde un resultado incompleto podría evitar volver a poner en cola mientras los watches desencadenan futuras requests. Se considera terminado cuando el comportamiento para una reconciliation incompleta sin Requeue explícito o exponencial está definido y cubierto.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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!

Lenguaje dominante
Go
Estrellas
3k
Forks
1.3k
Merge medio
1 d 7 h
PR fusionados (30 d)
48

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de kubernetes-sigs/controller-runtime

Todos los issues de kubernetes-sigs/controller-runtime

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.