@@ -159,10 +159,11 @@ type InferencePoolStatus struct {
159159 Parents []PoolStatus `json:"parent,omitempty"`
160160}
161161
162- // PoolStatus defines the observed state of InferencePool from a gateway .
162+ // PoolStatus defines the observed state of InferencePool from a Gateway .
163163type PoolStatus struct {
164164 // GatewayRef indicates the gateway that observed state of InferencePool.
165165 GatewayRef corev1.ObjectReference `json:"parentRef"`
166+
166167 // Conditions track the state of the InferencePool.
167168 //
168169 // Known condition types are:
@@ -180,27 +181,67 @@ type PoolStatus struct {
180181// InferencePoolConditionType is a type of condition for the InferencePool
181182type InferencePoolConditionType string
182183
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
185186
186187const (
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.
188190 //
189191 // Possible reasons for this condition to be True are:
190192 //
191- // * "Ready"
193+ // * "Accepted"
194+ //
195+ // Possible reasons for this condition to be False are:
196+ //
197+ // * "NotSupportedByGateway"
192198 //
193199 // Possible reasons for this condition to be Unknown are:
194200 //
195201 // * "Pending"
196202 //
197- PoolConditionReady InferencePoolConditionType = "Ready"
203+ // Controllers MAY raise this condition with other reasons, but should
204+ // prefer to use the reasons listed above to improve interoperability.
205+ InferencePoolConditionAccepted InferencePoolConditionType = "Accepted"
206+
207+ // This reason is used with the "Accepted" condition when the Route has been
208+ // accepted by the Gateway.
209+ InferencePoolReasonAccepted InferencePoolReason = "Accepted"
210+
211+ // This reason is used with the "Accepted" condition when the InferencePool
212+ // has not been accepted by a Gateway because the Gateway does not support
213+ // InferencePool as a backend.
214+ InferencePoolReasonNotSupportedByGateway InferencePoolReason = "NotSupportedByGateway"
215+
216+ // This reason is used with the "Accepted" when a controller has not yet
217+ // reconciled the route.
218+ InferencePoolReasonPending InferencePoolReason = "Pending"
219+ )
220+
221+ const (
222+ // This condition indicates whether the controller was able to resolve all
223+ // the object references for the InferencePool.
224+ //
225+ // Possible reasons for this condition to be true are:
226+ //
227+ // * "ResolvedRefs"
228+ //
229+ // Possible reasons for this condition to be False are:
230+ //
231+ // * "InvalidExtnesionRef"
232+ //
233+ // Controllers MAY raise this condition with other reasons, but should
234+ // prefer to use the reasons listed above to improve interoperability.
235+ ModelConditionResolvedRefs InferencePoolConditionType = "ResolvedRefs"
198236
199- // PoolReasonReady is the desired state. The pool and its components are initialized and ready for traffic.
200- PoolReasonReady InferencePoolConditionReason = "Ready"
237+ // This reason is used with the "ResolvedRefs" condition when the condition
238+ // is true.
239+ ModelReasonResolvedRefs InferencePoolReason = "ResolvedRefs"
201240
202- // PoolReasonPending is the initial state, and indicates that the controller has not yet reconciled this pool.
203- PoolReasonPending InferencePoolConditionReason = "Pending"
241+ // This reason is used with the "ResolvedRefs" condition when the
242+ // ExtensionRef is invalid in some way. This can include an unsupported kind
243+ // or API group, or a reference to a resource that can not be found.
244+ ModelReasonInvalidExtensionRef InferencePoolReason = "InvalidExtensionRef"
204245)
205246
206247func init () {
0 commit comments