workload selector should support set-based requirements

Đang mở
#1,965 1 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
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Bắt đầu với type/v1beta1/selector.pb.go tại định nghĩa WorkloadSelector và kiểm tra các kiểu API Istio khác sử dụng nó. So sánh hình dạng selector hiện tại với Kubernetes LabelSelector và lần theo các định nghĩa API bị ảnh hưởng. Hoàn tất có nghĩa là hỗ trợ matchExpressions dựa trên tập hợp trong khi vẫn duy trì khả năng tương thích của hành vi matchLabels hiện có.

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

Mô tả

(This is used to request new product features, please visit https://discuss.istio.io for questions on using Istio)

Describe the feature request

The type WorkloadSelector, used in many Istio type definitions, and defined here (https://github.com/istio/api/blob/1c84260bf409683cc7602dff2cd838d772f7f43b/type/v1beta1/selector.pb.go#L32) should align to the kubernetes LabelSelector1, which supports set based requirements.

so it would be possible to not only write expressions like:

 selector:
   matchLabels:
     serving.kubeflow.org/inferenceservice: test-service 

but also expressions like:

        selector:
          matchExpressions:
            - key: "serving.knative.dev/service"
              operator: Exists

Note that this enhancement would 100% back compatible and would like the istio behavior with the more general kubernetes behavior.

Describe alternatives you've considered
There isn't really an alternative for the problem I'm trying to serve.

Affected product area (please put an X in all that apply)

This api type appears in many APIs, not sure which all are, but like I said the change would be backward compatible.

[ ] Configuration Infrastructure
[x] 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

Mở trong Codespaces

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.

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 istio/api

Tất cả issue của istio/api

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.