Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds InferenceExtension to GatewayParameters #10601

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions api/applyconfiguration/api/v1alpha1/endpointpickerextension.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions api/applyconfiguration/api/v1alpha1/inferenceextension.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 19 additions & 10 deletions api/applyconfiguration/api/v1alpha1/kubernetesproxyconfig.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions api/applyconfiguration/internal/internal.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions api/applyconfiguration/utils.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions api/v1alpha1/gateway_parameters_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ type KubernetesProxyConfig struct {
// +kubebuilder:validation:Optional
AiExtension *AiExtension `json:"aiExtension,omitempty"`

// InferenceExtension defines the desired state of the Gateway API inference extension.
// For additional details, see: https://gateway-api-inference-extension.sigs.k8s.io/.
//
// +kubebuilder:validation:Optional
InferenceExtension *InferenceExtension `json:"inferenceExtension,omitempty"`

// Used to unset the `runAsUser` values in security contexts.
FloatingUserId *bool `json:"floatingUserId,omitempty"`
}
Expand Down Expand Up @@ -732,3 +738,20 @@ func (in *CustomLabel) GetKeyDelimiter() *string {
}
return in.KeyDelimiter
}

// InferenceExtension defines the desired state of the Gateway API inference extension.
// For additional details, see: https://gateway-api-inference-extension.sigs.k8s.io/.
type InferenceExtension struct {
// EndpointPicker defines the EndpointPicker extension.
//
// +optional
EndpointPicker *EndpointPickerExtension `json:"endpointPicker,omitempty"`
}

// EndpointPickerExtension defines the desired state of an EndpointPicker extension.
type EndpointPickerExtension struct {
// Whether to enable the extension.
//
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty"`
}
45 changes: 45 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,14 @@ spec:
type: object
floatingUserId:
type: boolean
inferenceExtension:
properties:
endpointPicker:
properties:
enabled:
type: boolean
type: object
type: object
istio:
properties:
customSidecars:
Expand Down
51 changes: 50 additions & 1 deletion pkg/generated/openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading