@@ -35,7 +35,7 @@ type InferencePool struct {
35
35
36
36
// Status defines the observed state of InferencePool.
37
37
//
38
- // +kubebuilder:default={parent: {{parentRef: {}, conditions: {{type: "Accepted", status: "Unknown", reason: "Pending", message: "Waiting for controller", lastTransitionTime: "1970-01-01T00:00:00Z"}}}}}
38
+ // +kubebuilder:default={parent: {{parentRef: {kind: "Status", name: "default" }, conditions: {{type: "Accepted", status: "Unknown", reason: "Pending", message: "Waiting for controller", lastTransitionTime: "1970-01-01T00:00:00Z"}}}}}
39
39
Status InferencePoolStatus `json:"status,omitempty"`
40
40
}
41
41
@@ -154,14 +154,19 @@ const (
154
154
FailClose ExtensionFailureMode = "FailClose"
155
155
)
156
156
157
- // InferencePoolStatus defines the observed state of InferencePool
157
+ // InferencePoolStatus defines the observed state of InferencePool.
158
158
type InferencePoolStatus struct {
159
159
// Parents is a list of parent resources (usually Gateways) that are
160
- // associated with the route , and the status of the InferencePool with respect to
160
+ // associated with the InferencePool , and the status of the InferencePool with respect to
161
161
// each parent.
162
162
//
163
- // A maximum of 32 Gateways will be represented in this list. An empty list
164
- // means the route has not been attached to any Gateway.
163
+ // A maximum of 32 Gateways will be represented in this list. When the list contains
164
+ // `kind: Status, name: default`, it indicates that the InferencePool is not
165
+ // associated with any Gateway and a controller must perform the following:
166
+ //
167
+ // - Remove the parent when setting the "Accepted" condition.
168
+ // - Add the parent when the controller will no longer manage the InferencePool
169
+ // and no other parents exist.
165
170
//
166
171
// +kubebuilder:validation:MaxItems=32
167
172
Parents []PoolStatus `json:"parent,omitempty"`
@@ -194,7 +199,7 @@ type InferencePoolConditionType string
194
199
type InferencePoolReason string
195
200
196
201
const (
197
- // This condition indicates whether the route has been accepted or rejected
202
+ // This condition indicates whether the InferencePool has been accepted or rejected
198
203
// by a Gateway, and why.
199
204
//
200
205
// Possible reasons for this condition to be True are:
@@ -213,7 +218,7 @@ const (
213
218
// prefer to use the reasons listed above to improve interoperability.
214
219
InferencePoolConditionAccepted InferencePoolConditionType = "Accepted"
215
220
216
- // This reason is used with the "Accepted" condition when the Route has been
221
+ // This reason is used with the "Accepted" condition when the InferencePool has been
217
222
// accepted by the Gateway.
218
223
InferencePoolReasonAccepted InferencePoolReason = "Accepted"
219
224
@@ -223,7 +228,7 @@ const (
223
228
InferencePoolReasonNotSupportedByGateway InferencePoolReason = "NotSupportedByGateway"
224
229
225
230
// This reason is used with the "Accepted" when a controller has not yet
226
- // reconciled the route .
231
+ // reconciled the InferencePool .
227
232
InferencePoolReasonPending InferencePoolReason = "Pending"
228
233
)
229
234
0 commit comments