@@ -60,26 +60,24 @@ type InferencePoolSpec struct {
60
60
// +kubebuilder:validation:Required
61
61
TargetPortNumber int32 `json:"targetPortNumber"`
62
62
63
- // EndpointPickerConfig configures the extension that runs the endpoint picking service.
64
- // to this pool.
63
+ // EndpointPickerConfig specifies the configuration needed by the proxy to discover and connect to the endpoint
64
+ // picker service that picks endpoints for the requests routed to this pool.
65
65
EndpointPickerConfig `json:"endpointPickerConfig"`
66
66
}
67
67
68
- // EndpointPickerConfig specifies configuration needed by the proxy to find and connect to the Endpoint Picker .
69
- // This type is intended to be a union of mutually exclusive configuration options.
68
+ // EndpointPickerConfig specifies the configuration needed by the proxy to discover and connect to the endpoint picker extension .
69
+ // This type is intended to be a union of mutually exclusive configuration options that we may add in the future .
70
70
type EndpointPickerConfig struct {
71
71
// Extension configures an endpoint picker as an extension service.
72
72
//
73
73
// +kubebuilder:validation:Required
74
- Extension * ExtensionConfig `json:"extension,omitempty "`
74
+ Extension * ExtensionConfig `json:"extension"`
75
75
}
76
76
77
77
// ExtensionConfig specifies how to configure an extension that runs the endpoint picker.
78
78
type ExtensionConfig struct {
79
79
// ExtensionRef is a reference to a service extension.
80
- //
81
- // +optional
82
- ExtensionRef * ExtensionReference `json:"extensionRef,omitempty"`
80
+ ExtensionRef ExtensionReference `json:"extensionRef"`
83
81
84
82
// ExtensionConnection configures the connection between the gateway and the extension.
85
83
ExtensionConnection `json:"extensionConnection"`
@@ -110,11 +108,15 @@ type ExtensionReference struct {
110
108
Kind * string `json:"kind,omitempty"`
111
109
112
110
// Name is the name of the referent.
111
+ //
112
+ // +kubebuilder:validation:Required
113
113
Name string `json:"name"`
114
114
115
115
// The port number on the pods running the extension. When unspecified, implementations are recommended
116
116
// to default it to 9002 and the Kind is Service.
117
- TargetPortNumber * int32 `json:"targetPortNumber"`
117
+ //
118
+ // +optional
119
+ TargetPortNumber * int32 `json:"targetPortNumber,omitempty"`
118
120
}
119
121
120
122
// ExtensionConnection encapsulates options that configures the connection to the extension.
0 commit comments