Observe the running etcd version in EtcdMember status and key version-dependent logic off it

Đang mở
#338 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
go, kubernetes
Lĩnh vực
backend, databases

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Go
Star
154
Fork
31
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cozystack/etcd-operator

Tất cả issue của cozystack/etcd-operator

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.