v1alpha1

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultClassAnnotation = "aigateway.kubernetes.io/is-default-class"
)

Variables

This section is empty.

Functions

func SetupAiGatewayClassWebhookWithManager

func SetupAiGatewayClassWebhookWithManager(mgr ctrl.Manager) error

SetupAiGatewayClassWebhookWithManager registers the webhook for AiGatewayClass in the manager.

func SetupAiGatewayWebhookWithManager

func SetupAiGatewayWebhookWithManager(mgr ctrl.Manager) error

SetupAiGatewayWebhookWithManager registers the webhook for AiGateway in the manager.

Types

type AiGatewayClassCustomValidator

type AiGatewayClassCustomValidator struct {
	Client client.Client
}

AiGatewayClassCustomValidator struct is responsible for validating the AiGatewayClass resource when it is created or updated.

NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as this struct is used only for temporary operations and does not need to be deeply copied.

func (*AiGatewayClassCustomValidator) ValidateCreate

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type AiGatewayClass.

func (*AiGatewayClassCustomValidator) ValidateDelete

ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type AiGatewayClass.

func (*AiGatewayClassCustomValidator) ValidateUpdate

func (v *AiGatewayClassCustomValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type AiGatewayClass.

type AiGatewayCustomDefaulter

type AiGatewayCustomDefaulter struct {
}

AiGatewayCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind AiGateway when those are created or updated.

NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as it is used only for temporary operations and does not need to be deeply copied.

func (*AiGatewayCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind AiGateway.

type AiGatewayCustomValidator

type AiGatewayCustomValidator struct {
}

AiGatewayCustomValidator struct is responsible for validating the AiGateway resource when it is created, updated, or deleted.

NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as this struct is used only for temporary operations and does not need to be deeply copied.

func (*AiGatewayCustomValidator) ValidateCreate

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type AiGateway.

func (*AiGatewayCustomValidator) ValidateDelete

ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type AiGateway.

func (*AiGatewayCustomValidator) ValidateUpdate

func (v *AiGatewayCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type AiGateway.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL