Skip to content

Commit 7001c32

Browse files
committed
Add document to disallow cross namespace match explicitly
1 parent 6baca05 commit 7001c32

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

api/v1alpha2/inferencepool_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ type InferencePoolSpec struct {
5050
// that should be included in the InferencePool.
5151
// In some cases, implementations may translate this field to a Service selector, so this matches the simple
5252
// map used for Service selectors instead of the full Kubernetes LabelSelector type.
53+
// If sepecified, it will be applied to match the model server pods in the same namespace as the InferencePool.
54+
// Cross namesoace selector is not supported.
5355
//
5456
// +kubebuilder:validation:Required
5557
Selector map[LabelKey]LabelValue `json:"selector"`

config/crd/bases/inference.networking.x-k8s.io_inferencepools.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ spec:
109109
that should be included in the InferencePool.
110110
In some cases, implementations may translate this field to a Service selector, so this matches the simple
111111
map used for Service selectors instead of the full Kubernetes LabelSelector type.
112+
If sepecified, it will be applied to match the model server pods in the same namespace as the InferencePool.
113+
Cross namesoace selector is not supported.
112114
type: object
113115
targetPortNumber:
114116
description: |-

0 commit comments

Comments
 (0)