Skip to content

Commit 23498e7

Browse files
committed
added listtype tag
1 parent 87e1035 commit 23498e7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

api/v1/inferencepool_types.go

Lines changed: 3 additions & 1 deletion
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=set
71+
// +listTypeKey=number
7072
TargetPorts []Port `json:"targetPorts"`
7173

7274
// EndpointPickerConfig specifies the configuration needed by the proxy to discover and connect to the endpoint
@@ -75,7 +77,7 @@ type InferencePoolSpec struct {
7577
}
7678

7779
type Port struct {
78-
// PortNumber defines the port number to access the selected model server Pods.
80+
// Number defines the port number to access the selected model server Pods.
7981
// The number must be in the range 1 to 65535.
8082
//
8183
// +kubebuilder:validation:Minimum=1

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ spec:
138138
properties:
139139
number:
140140
description: |-
141-
PortNumber defines the port number to access the selected model server Pods.
141+
Number defines the port number to access the selected model server Pods.
142142
The number must be in the range 1 to 65535.
143143
format: int32
144144
maximum: 65535
@@ -150,6 +150,7 @@ spec:
150150
maxItems: 1
151151
minItems: 1
152152
type: array
153+
x-kubernetes-list-type: set
153154
required:
154155
- selector
155156
- targetPorts

0 commit comments

Comments
 (0)