File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ type InferencePoolSpec struct {
66
66
// +kubebuilder:validation:Required
67
67
// +kubebuilder:validation:MinItems=1
68
68
// +kubebuilder:validation:MaxItems=1
69
+ // +listType=set
70
+ // +listTypeKey=number
69
71
TargetPorts []Port `json:"targetPorts"`
70
72
71
73
// EndpointPickerConfig specifies the configuration needed by the proxy to discover and connect to the endpoint
@@ -74,7 +76,7 @@ type InferencePoolSpec struct {
74
76
}
75
77
76
78
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.
78
80
// The number must be in the range 1 to 65535.
79
81
//
80
82
// +kubebuilder:validation:Minimum=1
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ spec:
128
128
properties :
129
129
number :
130
130
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.
132
132
The number must be in the range 1 to 65535.
133
133
format : int32
134
134
maximum : 65535
@@ -140,6 +140,7 @@ spec:
140
140
maxItems : 1
141
141
minItems : 1
142
142
type : array
143
+ x-kubernetes-list-type : set
143
144
required :
144
145
- extensionRef
145
146
- selector
You can’t perform that action at this time.
0 commit comments