Documentation
¶
Index ¶
- Constants
- func SetupAiGatewayClassWebhookWithManager(mgr ctrl.Manager) error
- func SetupAiGatewayWebhookWithManager(mgr ctrl.Manager) error
- type AiGatewayClassCustomValidator
- func (v *AiGatewayClassCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *AiGatewayClassCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (v *AiGatewayClassCustomValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type AiGatewayCustomDefaulter
- type AiGatewayCustomValidator
- func (v *AiGatewayCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *AiGatewayCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *AiGatewayCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
const (
DefaultClassAnnotation = "aigateway.kubernetes.io/is-default-class"
)
Variables ¶
This section is empty.
Functions ¶
func SetupAiGatewayClassWebhookWithManager ¶
SetupAiGatewayClassWebhookWithManager registers the webhook for AiGatewayClass in the manager.
func SetupAiGatewayWebhookWithManager ¶
SetupAiGatewayWebhookWithManager registers the webhook for AiGateway in the manager.
Types ¶
type AiGatewayClassCustomValidator ¶
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 ¶
func (v *AiGatewayClassCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type AiGatewayClass.
func (*AiGatewayClassCustomValidator) ValidateDelete ¶
func (v *AiGatewayClassCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
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.
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 ¶
func (v *AiGatewayCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type AiGateway.
func (*AiGatewayCustomValidator) ValidateDelete ¶
func (v *AiGatewayCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
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.