ssa: wait errors drop the kstatus message, so health check failures don't say why
Maintainer thường phản hồi trong vòng 1 ngày
Đá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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của fluxcd/pkg
-
ssa/jsondiff: honor ignored fields before dry-run validationCó thể đã có người làm @lubronzhan đã nhận 31 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Improve `make release` to support major version bumpsCó thể đã có người làm @Iam-Karan-Suresh đã nhận 175 ngày trước. Đang mởarea/ci
fluxcd/pkg#1172 · 3 bình luận · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug: `runtime/client.(*Impersonator).CanImpersonate` does not take kubeconfig into accountCó thể làm lại được @yuminn-k đã nhận 16 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 49/100
fluxcd/pkg#959 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Pin and verify Security Insights schema in lintinsights targetCó thể đã có người làm @imshubham22apr-gif đã nhận 5 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
gemaraproj/gemara#618 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
a2aproject/a2a-go#597 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 4 ngày
-
scopes: GetAllowedTopics, GetProtectedTopics, and GetScopedTopics include empty topic names and do not trim whitespace charactersCó thể đã có người làm @patelshivani2283-lab đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/networking kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
siderolabs/talos#14972 ·
Maintainer thường phản hồi trong vòng 1 ngày