Kubernetes reference chart: add a Casework status operation and an optional BReg metrics port

Đang mở
#2,756 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

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
helm, json, kubernetes, rust, yaml

Hướng nghiên cứu

Start in deploy/helm/registry-stack/: read values.schema.json for the casework.operation.kind enum, then the Job template that renders those kinds, and copy the existing BReg operation path for a status kind. For the metrics port, read crates/registry-breg/src/runtime_config.rs to see how metricsListener is parsed, then wire an optional (default-off) container and Service port plus a NetworkPolicy ingress rule limited to a configured scraper selector. Finish by extending the chart's existing contract tests and correcting the README sentence near line 485 that claims BReg exposes no metrics port.

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

Mô tả

area:breg area:casework enhancement

From the review of #2742, the Kubernetes reference chart under deploy/helm/registry-stack/. The chart is an unsupported reference, so neither gap blocks anything.

1. No Casework status operation

caseworkctl has a status command, but the chart's Casework operation kinds are only plan, apply and doctor (values.schema.json, the casework.operation.kind enum). An operator cannot read Casework status through the same operation Job path used for BReg.

Expected: add status to the enum and the template, with a contract test, or say in the README why it is left out.

2. No BReg metrics port

BReg reads a metricsListener runtime setting (crates/registry-breg/src/runtime_config.rs), but the chart has no container port, Service port or NetworkPolicy rule for it. An operator who sets metricsListener in the runtime configuration cannot scrape it. The README (around line 485) says BReg "exposes no metrics port". That is inaccurate: BReg has a metrics listener, and only the chart does not expose it.

Expected: an optional metrics port (off by default) with a NetworkPolicy ingress rule limited to a configured scraper namespace or Pod selector, and a contract test. Or document that metrics are not wired in the reference and correct the README sentence.

Related: #2749 (metrics follow-ups).

Ngôn ngữ chính
Rust
Star
2
Fork
0
Merge trung bình
9 giờ 48 phút
Pull request đã merge (30 ngày)
151

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 registrystack/registry-stack

Tất cả issue của registrystack/registry-stack

Issue tương tự

Thêm issue về Rust

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.