Skip to content

Commit dec564c

Browse files
committed
Cleanup
1 parent dd10ae2 commit dec564c

File tree

3 files changed

+15
-17
lines changed

3 files changed

+15
-17
lines changed

api/v1alpha1/inferencepool_types.go

+11-9
Original file line numberDiff line numberDiff line change
@@ -60,26 +60,24 @@ type InferencePoolSpec struct {
6060
// +kubebuilder:validation:Required
6161
TargetPortNumber int32 `json:"targetPortNumber"`
6262

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.
6565
EndpointPickerConfig `json:"endpointPickerConfig"`
6666
}
6767

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.
7070
type EndpointPickerConfig struct {
7171
// Extension configures an endpoint picker as an extension service.
7272
//
7373
// +kubebuilder:validation:Required
74-
Extension *ExtensionConfig `json:"extension,omitempty"`
74+
Extension *ExtensionConfig `json:"extension"`
7575
}
7676

7777
// ExtensionConfig specifies how to configure an extension that runs the endpoint picker.
7878
type ExtensionConfig struct {
7979
// ExtensionRef is a reference to a service extension.
80-
//
81-
// +optional
82-
ExtensionRef *ExtensionReference `json:"extensionRef,omitempty"`
80+
ExtensionRef ExtensionReference `json:"extensionRef"`
8381

8482
// ExtensionConnection configures the connection between the gateway and the extension.
8583
ExtensionConnection `json:"extensionConnection"`
@@ -110,11 +108,15 @@ type ExtensionReference struct {
110108
Kind *string `json:"kind,omitempty"`
111109

112110
// Name is the name of the referent.
111+
//
112+
// +kubebuilder:validation:Required
113113
Name string `json:"name"`
114114

115115
// The port number on the pods running the extension. When unspecified, implementations are recommended
116116
// to default it to 9002 and the Kind is Service.
117-
TargetPortNumber *int32 `json:"targetPortNumber"`
117+
//
118+
// +optional
119+
TargetPortNumber *int32 `json:"targetPortNumber,omitempty"`
118120
}
119121

120122
// ExtensionConnection encapsulates options that configures the connection to the extension.

api/v1alpha1/zz_generated.deepcopy.go

+1-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/inference.networking.x-k8s.io_inferencepools.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ spec:
4141
properties:
4242
endpointPickerConfig:
4343
description: |-
44-
EndpointPickerConfig configures the extension that runs the endpoint picking service.
45-
to this pool.
44+
EndpointPickerConfig specifies the configuration needed by the proxy to discover and connect to the endpoint
45+
picker service that picks endpoints for the requests routed to this pool.
4646
properties:
4747
extension:
4848
description: Extension configures an endpoint picker as an extension
@@ -96,10 +96,10 @@ spec:
9696
type: integer
9797
required:
9898
- name
99-
- targetPortNumber
10099
type: object
101100
required:
102101
- extensionConnection
102+
- extensionRef
103103
type: object
104104
required:
105105
- extension

0 commit comments

Comments
 (0)