Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

DaemonSet readiness accepts status from an older generation

Aperta Adatta ai principianti
#2,968 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
84/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go, kubernetes
Ambito
devops

Direzione di ricerca

Inizia in internal/state/state_skel.go, all'interno di isDaemonSetReady, quindi segui come il suo risultato arriva a getSyncState. Riproduci il caso DaemonSet tipizzato usando il pattern di fake-client Kubernetes del repository e analizza la regressione menzionata relativa alla transizione da notReady a ready. Il lavoro è completato quando la readiness attende la generazione osservata corrente, mantenendo il comportamento con zero nodi e i controlli esistenti sul conteggio dei pod.

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

Descrizione

On current main 60526e35, internal/state/state_skel.go:isDaemonSetReady checks ObservedGeneration only when the desired pod count is zero. For a nonempty DaemonSet, equal desired/available/updated counts are accepted even when the controller has only observed the previous generation.

A DaemonSet with metadata.generation=3, status.observedGeneration=2, and desiredNumberScheduled=numberAvailable=updatedNumberScheduled=2 is currently reported ready. Those counts describe the previous template. This result also reaches the state aggregation through getSyncState.

Expected: wait until the DaemonSet controller observes the current generation, then apply the existing pod-count checks. The zero-node steady state should retain its current behavior.

Kubernetes defines observedGeneration as the most recent generation observed by the DaemonSet controller: https://kubernetes.io/docs/reference/kubernetes-api/apps/daemon-set-v1/

Reproduced with typed DaemonSet objects and through the actual state aggregator using the repository's Kubernetes fake-client pattern. A regression checks the notReady-to-ready transition after a status update. No live cluster is involved. This is separate from the pending DaemonSet update-strategy and Service reconciliation changes.

Lingua principale
Go
Stelle
2.9k
Fork
552
Merge medio
1g 23h
PR unite (30g)
68

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 NVIDIA/gpu-operator

Tutte le issue di NVIDIA/gpu-operator

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.