DaemonSet readiness accepts status from an older generation
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 internal/state/state_skel.go 中的 isDaemonSetReady 开始,然后追踪其结果如何到达 getSyncState。使用仓库的 Kubernetes fake-client 模式复现带类型的 DaemonSet 情况,并检查所提到的围绕 notReady 到 ready 转换的回归问题。完成的标准是 readiness 等待当前观测到的 generation,同时保留零节点行为和现有的 pod 数量检查。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Go
- 星标
- 2.9k
- 派生
- 552
- 平均合并
- 2 天 3 小时
- 30 天内合并 PR
- 74
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NVIDIA/gpu-operator 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
NVIDIA/gpu-operator#2955 · 1 条评论 ·
维护者通常 1 天内回复
-
lifecycle/stale question
难度 2/5 1-3 小时 新手友好度 64/100
NVIDIA/gpu-operator#2280 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 68/100
NVIDIA/gpu-operator#2957 · 1 条评论 ·
维护者通常 1 天内回复
-
feature lifecycle/frozen needs-triage
难度 3/5 1-2 天 新手友好度 65/100
NVIDIA/gpu-operator#2938 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
NVIDIA/gpu-operator#2923 · 1 条评论 ·
维护者通常 1 天内回复
查看 NVIDIA/gpu-operator 的全部 Issue
相似的 Issue
-
area: global bug dx priority: low
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
grafana/mcp-grafana#1267 ·
维护者通常 1 天内回复
-
automation models
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
coverage-gap good-first-pattern help wanted
难度 2/5 1-3 小时 新手友好度 78/100
GoogleCloudPlatform/k8s-aibom#114 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
txn2/mcp-data-platform#1984 ·
维护者通常 1 天内回复