Skip to content

Commit f1de320

Browse files
committed
added listtype tag
1 parent 118d923 commit f1de320

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
@@ -66,6 +66,8 @@ type InferencePoolSpec struct {
6666
// +kubebuilder:validation:Required
6767
// +kubebuilder:validation:MinItems=1
6868
// +kubebuilder:validation:MaxItems=1
69+
// +listType=set
70+
// +listTypeKey=number
6971
TargetPorts []Port `json:"targetPorts"`
7072

7173
// EndpointPickerConfig specifies the configuration needed by the proxy to discover and connect to the endpoint
@@ -74,7 +76,7 @@ type InferencePoolSpec struct {
7476
}
7577

7678
type Port struct {
77-
// PortNumber defines the port number to access the selected model server Pods.
79+
// Number defines the port number to access the selected model server Pods.
7880
// The number must be in the range 1 to 65535.
7981
//
8082
// +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
@@ -128,7 +128,7 @@ spec:
128128
properties:
129129
number:
130130
description: |-
131-
PortNumber defines the port number to access the selected model server Pods.
131+
Number defines the port number to access the selected model server Pods.
132132
The number must be in the range 1 to 65535.
133133
format: int32
134134
maximum: 65535
@@ -140,6 +140,7 @@ spec:
140140
maxItems: 1
141141
minItems: 1
142142
type: array
143+
x-kubernetes-list-type: set
143144
required:
144145
- extensionRef
145146
- selector

0 commit comments

Comments
 (0)