Skip to content

Commit 9c1a72a

Browse files
authored
API: Adds 5xx Status Code for Invalid ExtRef (#991)
Signed-off-by: Daneyon Hansen <daneyon.hansen@solo.io>
1 parent 0650da7 commit 9c1a72a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

api/v1alpha2/inferencepool_types.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,18 @@ type EndpointPickerConfig struct {
8080

8181
// Extension specifies how to configure an extension that runs the endpoint picker.
8282
type Extension struct {
83-
// Reference is a reference to a service extension.
83+
// Reference is a reference to a service extension. When ExtensionReference is invalid,
84+
// a 5XX status code MUST be returned for the request that would have otherwise been routed
85+
// to the invalid backend.
8486
ExtensionReference `json:",inline"`
8587

8688
// ExtensionConnection configures the connection between the gateway and the extension.
8789
ExtensionConnection `json:",inline"`
8890
}
8991

90-
// ExtensionReference is a reference to the extension deployment.
92+
// ExtensionReference is a reference to the extension deployment. When ExtensionReference is invalid,
93+
// a 5XX status code MUST be returned for the request that would have otherwise been routed to the
94+
// invalid backend.
9195
type ExtensionReference struct {
9296
// Group is the group of the referent.
9397
// The default value is "", representing the Core API group.

0 commit comments

Comments
 (0)