@@ -159,10 +159,11 @@ type InferencePoolStatus struct {
159
159
Parents []PoolStatus `json:"parent,omitempty"`
160
160
}
161
161
162
- // PoolStatus defines the observed state of InferencePool from a gateway .
162
+ // PoolStatus defines the observed state of InferencePool from a Gateway .
163
163
type PoolStatus struct {
164
164
// GatewayRef indicates the gateway that observed state of InferencePool.
165
165
GatewayRef corev1.ObjectReference `json:"parentRef"`
166
+
166
167
// Conditions track the state of the InferencePool.
167
168
//
168
169
// Known condition types are:
@@ -180,27 +181,68 @@ type PoolStatus struct {
180
181
// InferencePoolConditionType is a type of condition for the InferencePool
181
182
type InferencePoolConditionType string
182
183
183
- // InferencePoolConditionReason is the reason for a given InferencePoolConditionType
184
- type InferencePoolConditionReason string
184
+ // InferencePoolReason is the reason for a given InferencePoolConditionType
185
+ type InferencePoolReason string
185
186
186
187
const (
187
- // PoolConditionReady indicates if the pool is ready to accept traffic, and if not, why.
188
+ // This condition indicates whether the route has been accepted or rejected
189
+ // by a Gateway, and why.
188
190
//
189
191
// Possible reasons for this condition to be True are:
190
192
//
191
- // * "Ready"
193
+ // * "Accepted"
194
+ //
195
+ // Possible reasons for this condition to be False are:
196
+ //
197
+ // * "NotAllowedByListeners"
198
+ // * "NotSupportedByGateway"
192
199
//
193
200
// Possible reasons for this condition to be Unknown are:
194
201
//
195
202
// * "Pending"
196
203
//
197
- PoolConditionReady InferencePoolConditionType = "Ready"
204
+ // Controllers MAY raise this condition with other reasons, but should
205
+ // prefer to use the reasons listed above to improve interoperability.
206
+ InferencePoolConditionAccepted InferencePoolConditionType = "Accepted"
207
+
208
+ // This reason is used with the "Accepted" condition when the Route has been
209
+ // accepted by the Gateway.
210
+ InferencePoolReasonAccepted InferencePoolReason = "Accepted"
211
+
212
+ // This reason is used with the "Accepted" condition when the InferencePool
213
+ // has not been accepted by a Gateway because the Gateway does not support
214
+ // InferencePool as a backend.
215
+ InferencePoolReasonNotSupportedByGateway InferencePoolReason = "NotSupportedByGateway"
216
+
217
+ // This reason is used with the "Accepted" when a controller has not yet
218
+ // reconciled the route.
219
+ InferencePoolReasonPending InferencePoolReason = "Pending"
220
+ )
221
+
222
+ const (
223
+ // This condition indicates whether the controller was able to
224
+ // resolve all the object references for the Listener.
225
+ //
226
+ // Possible reasons for this condition to be true are:
227
+ //
228
+ // * "ResolvedRefs"
229
+ //
230
+ // Possible reasons for this condition to be False are:
231
+ //
232
+ // * "InvalidExtnesionRef"
233
+ //
234
+ // Controllers MAY raise this condition with other reasons, but should
235
+ // prefer to use the reasons listed above to improve interoperability.
236
+ ModelConditionResolvedRefs InferencePoolConditionType = "ResolvedRefs"
198
237
199
- // PoolReasonReady is the desired state. The pool and its components are initialized and ready for traffic.
200
- PoolReasonReady InferencePoolConditionReason = "Ready"
238
+ // This reason is used with the "ResolvedRefs" condition when the condition
239
+ // is true.
240
+ ModelReasonResolvedRefs InferencePoolReason = "ResolvedRefs"
201
241
202
- // PoolReasonPending is the initial state, and indicates that the controller has not yet reconciled this pool.
203
- PoolReasonPending InferencePoolConditionReason = "Pending"
242
+ // This reason is used with the "ResolvedRefs" condition when the
243
+ // ExtensionRef is invalid in some way. This can include an unsupported kind
244
+ // or API group, or a reference to a resource that can not be found.
245
+ ListenerReasonInvalidExtensionRef InferencePoolReason = "InvalidExtensionRef"
204
246
)
205
247
206
248
func init () {
0 commit comments