Make AuthorizationPolicy spec usable with controller-gen
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
- 35/100
Hướng nghiên cứu
Đọc security/v1beta1/authorization_policy.pb.go, tập trung vào thuộc tính được export ActionDetail và phương thức GetActionDetail hiện có của nó. Tái hiện lỗi bằng kubebuilder hoặc controller-tools với một spec AuthorizationPolicy được nhúng, sau đó xác định một cách tiếp cận cho phép controller-gen xử lý nó mà không yêu cầu một kiểu được sao chép, đồng thời xem xét khả năng tương thích đối với các caller của thuộc tính công khai.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the feature request
The AuthorizationPolicy spec (security/v1beta1/authorization_policy.pb.go) go type can't be used with controller-tools
If I try to create a CRD with kubebuilder / controller-tools that embeds an AuthorizationPolicy spec as part of my CRD object, I have to create my own copy of the existing type, which adds more work to translate it to an actual AuthorizationPolicy later on.
The reason this fails is that the type has an ActionDetail property which lacks any json tag.
This is because this property is not part of the CRD itself I believe. However, controller-tools at best allows to ignore private properties from a type but not public properties. So it fails to create the CRD object.
One option would be to make ActionDetail private (actionDetail - there is already a GetActionDetail method defined) but this is an interface change that would likely introduce breakages in existing code if they access that property directly
Describe alternatives you've considered
Alternative is to create a "copy" of the type and create methods to get an istio AuthorizationPolicy object out of the clone type
Affected product area (please put an X in all that apply)
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
Additional context
- Ngôn ngữ chính
- Go
- Star
- 523
- Fork
- 623
- Merge trung bình
- 5 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- 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 istio/api
-
Gateway CRD accepts both credentialName and tlsCertificates in server TLS settingsCó thể đã có người làm @RaphaelFakhri đã nhận 23 ngày trước. Đang mởarea/networking area/user experience
Độ khó 2/5 1-3 giờ 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
-
area/user experience kind/docs kind/enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 40/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/networking area/user experience kind/docs kind/enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[release-1.29] change default of statsCompression to trueCó thể làm lại được @keithmattix đã nhận 304 ngày trước và không có pull request nào đang mở. Đang mở
istio/api#3642 · 1 người được giao ·
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 45/100
istio/api#3638 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
bug raised-by:verifier to:worker
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
medici-finance/assay#7835 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
golang-malawi/qatarina#496 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
hive size:simple
Độ 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 1 ngày
-
janitor: 2026-11-27 hygieneĐang mởdocumentation stage:review
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
wso2/identity-customer-data-service#430 ·
Maintainer thường phản hồi trong vòng 1 ngày