feat: validate official Kubernetes module values and provider defaults

Đang mở
#163 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
62/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
ruby
Lĩnh vực
backend, infrastructure

Hướng nghiên cứu

Start from the module rendering path that already loads module defaults, and locate where each official Kubernetes module's schema.yaml is declared so validation can run before Helm rendering. Then find where provider defaults are stored and how the precedence hierarchy is documented, and wire them into the existing rendering flow for the selected provider only. Add tests covering valid values, invalid values (asserting the error names the module and value path), defaults precedence, and client overrides, plus a regression run over the existing DigitalOcean manifests to confirm they still render.

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

Mô tả

area: cli enhancement

Context

The Kubernetes module contract documents strict schemas for official modules and a defaults hierarchy that includes provider defaults. Current platform rendering loads module defaults, but does not apply schema.yaml to module values or load provider defaults through the normal rendering path. This leaves the documented module contract unenforced.

Scope

  • Validate values for official Kubernetes modules against their declared schema.yaml before rendering.
  • Apply provider defaults in the documented precedence order for the selected provider.
  • Keep error messages actionable and identify the module and invalid value path.
  • Add coverage for valid values, invalid values, defaults precedence, and client overrides.

Acceptance criteria

  • Invalid official module values fail validation before Helm rendering.
  • Provider defaults are applied only for the selected provider and are overridden according to the documented precedence.
  • Existing supported DigitalOcean platform manifests continue to render successfully.
Ngôn ngữ chính
Ruby
Star
0
Fork
0
Merge trung bình
3 giờ 23 phút
Pull request đã merge (30 ngày)
24

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 opsd-io/opsd-cli

Tất cả issue của opsd-io/opsd-cli

Issue tương tự

Thêm issue về Ruby

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.