ssa: wait errors drop the kstatus message, so health check failures don't say why

Đang mở Phù hợp với người mới
#1,379 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@schdief đang làm issue này rồi.

Từ ngày 16/11/2026.

  • #1380 của @schdief — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
backend, observability-sre

Hướng nghiên cứu

Bắt đầu với ssa/manager_wait.go#L174-LL186, nơi ResourceManager.WaitForSetWithContext định dạng lỗi cho các đối tượng chưa sẵn sàng, rồi theo dõi cách hàm nhận thông báo kstatus của từng đối tượng. Thêm thông báo đó khi không có lỗi từ poller, như được đề xuất trong issue. Bổ sung hoặc cập nhật kiểm thử cho cả hai trường hợp và xác nhận định dạng lỗi hiện có vẫn được giữ nguyên khi có lỗi từ poller.

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

Mô tả

ResourceManager.WaitForSetWithContext reports each object that didn't become ready as
<Kind>/<ns>/<name> status: '<Status>', plus the poller error, if any
(manager_wait.go#L174-L186).
kstatus already computes a human-readable Message for every object
(event.ResourceStatus.Message in fluxcd/cli-utils), but it is dropped.

kustomize-controller copies this error into the Ready/Healthy conditions and the
HealthCheckFailed event, so users see for example:

health check failed after 5m0s: timeout waiting for: [HelmRelease/apps/podinfo status: 'InProgress']

This says which object is not ready, but not why. The information is one field away:

Object kstatus Message (examples)
HelmRelease, upgrade failed, retries left the Ready message, e.g. Helm upgrade failed for release apps/podinfo with chart [email protected]: context deadline exceeded (helm-controller copies it into Reconciling, atomic_release.go#L315)
HelmRelease, retries exhausted Failed to upgrade after 1 attempt(s) (Stalled, atomic_release.go#L206)
Deployment e.g. Available: 0/1, Deployment generation is 2, but latest observed generation is 1, Progress deadline exceeded
PersistentVolumeClaim PVC is not Bound. phase: Pending
missing object Resource not found

Proposal: append the message when there's no poller error. The format stays the same; the
message is only added at the end. I'll open a PR for this.

Related: fluxcd/kustomize-controller#1431 (unhelpful health check notifications), #722
(wait error reporting).

Ngôn ngữ chính
Go
Star
63
Fork
162
Merge trung bình
9 giờ 54 phút
Pull request đã merge (30 ngày)
29

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

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 fluxcd/pkg

Tất cả issue của fluxcd/pkg

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.