Observe the running etcd version in EtcdMember status and key version-dependent logic off it
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
调研方向
Start by tracing how the operator currently reads spec.version for restore compatibility, target version, and drift detection; the issue does not name files or tests. Determine where the member can obtain the running etcd version from its endpoint and report it in EtcdMember status, then identify the version dependent logic that must use that observed value. Done means the running version is reported and those decisions use it.
由索引模型根据 Issue 内容生成。
描述
Background
Spun out of the review on #337 (per reviewer request — future work, not folded into that PR).
Today spec.version is treated as the source of truth for the running etcd version: it is injected as ETCD_VERSION, drives the restore version-compat pre-flight, the latched target, and drift detection. The member never reports what version it is actually running.
Problem
Because nothing observes the real running version, intent (spec.version) and reality can silently diverge — there is no signal to detect or reconcile a mismatch. This was the blocking reason a per-cluster image tag override (spec.image.tag) was dropped from #337: a tag resolving to a different minor than spec.version is internally contradictory and unvalidated.
Proposal
- The member determines, at runtime, the etcd version it is actually running and writes it to its
status(e.g.EtcdMember.status.version, read from the etcd endpoint //version). - The operator's version-dependent logic keys off that observed value, not the spec field.
Why it matters
This is the principled fix for the spec-vs-reality conflict. With an observed version in status, a per-cluster image/version override (deferred in #337) could be reconsidered safely, and version drift/upgrade handling becomes detectable rather than assumed.
Refs: #337
- 主要语言
- Go
- 星标
- 154
- 派生
- 31
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cozystack/etcd-operator 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
cozystack/etcd-operator#385 ·
-
难度 5/5 一周以上 新手友好度 35/100
cozystack/etcd-operator#383 ·
-
难度 5/5 一周以上 新手友好度 15/100
cozystack/etcd-operator#381 ·
-
难度 4/5 3-5 天 新手友好度 35/100
cozystack/etcd-operator#374 · 1 条评论 ·
-
Adoption deletes the legacy cluster-state ConfigMap but leaves Pods referencing it, and neither self-heal path detects the result可能已有人在做 @androndo 于 46 天前认领。 未关闭bug
难度 4/5 3-5 天 新手友好度 35/100
cozystack/etcd-operator#373 ·
查看 cozystack/etcd-operator 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
Correct local module testing instructions for Go sample contributors可能已有人在做 @slievrly 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 90/100
-
internal/core: cleanAttachmentName splits a rune at the 255-byte cap and stores invalid UTF-8可能已有人在做 @pacwestnobody 今天认领。 未关闭go good first issue help wanted
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
TestLaunchGolden spends about 98 seconds on fake-agent exit delays under -race可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
factory:subtask
难度 1/5 1 小时以内 新手友好度 95/100
维护者通常 1 天内回复