workload selector should support set-based requirements

オープン
#1,965 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go

調査の方向性

type/v1beta1/selector.pb.go の WorkloadSelector 定義から始め、それを使用している他の Istio API 型を調査します。現在の selector の形状を Kubernetes LabelSelector と比較し、影響を受ける API 定義を追跡します。set-based の matchExpressions がサポートされ、既存の matchLabels の動作との互換性が維持されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

(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

主要言語
Go
スター
523
フォーク
623
平均マージ
5日 20時間
マージ済み PR(30日)
4

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

istio/api のほかの issue

istio/api の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。