Skip to content

Commit 0aae6c3

Browse files
committed
updated to include list map
1 parent e89080e commit 0aae6c3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

api/v1/inferencepool_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ type InferencePoolSpec struct {
6767
// +kubebuilder:validation:Required
6868
// +kubebuilder:validation:MinItems=1
6969
// +kubebuilder:validation:MaxItems=1
70+
// +listType=map
71+
// +listMapKey=number
7072
TargetPorts []Port `json:"targetPorts"`
7173

7274
// EndpointPickerConfig specifies the configuration needed by the proxy to discover and connect to the endpoint

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ spec:
150150
maxItems: 1
151151
minItems: 1
152152
type: array
153+
x-kubernetes-list-map-keys:
154+
- number
155+
x-kubernetes-list-type: map
153156
required:
154157
- selector
155158
- targetPorts

0 commit comments

Comments
 (0)