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 @@ -67,6 +67,8 @@ type InferencePoolSpec struct {
67
67
// +kubebuilder:validation:Required
68
68
// +kubebuilder:validation:MinItems=1
69
69
// +kubebuilder:validation:MaxItems=1
70
+ // +listType=set
71
+ // +listTypeKey=number
70
72
TargetPorts []Port `json:"targetPorts"`
71
73
72
74
// EndpointPickerConfig specifies the configuration needed by the proxy to discover and connect to the endpoint
@@ -75,7 +77,7 @@ type InferencePoolSpec struct {
75
77
}
76
78
77
79
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.
79
81
// The number must be in the range 1 to 65535.
80
82
//
81
83
// +kubebuilder:validation:Minimum=1
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ spec:
138
138
properties :
139
139
number :
140
140
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.
142
142
The number must be in the range 1 to 65535.
143
143
format : int32
144
144
maximum : 65535
@@ -150,6 +150,7 @@ spec:
150
150
maxItems : 1
151
151
minItems : 1
152
152
type : array
153
+ x-kubernetes-list-type : set
153
154
required :
154
155
- selector
155
156
- targetPorts
You can’t perform that action at this time.
0 commit comments