Documentation
¶
Index ¶
- Constants
- func SetupAgentGatewayClassWebhookWithManager(mgr ctrl.Manager) error
- func SetupAgentGatewayWebhookWithManager(mgr ctrl.Manager) error
- func SetupAgentWebhookWithManager(mgr ctrl.Manager) error
- type AgentCustomDefaulter
- type AgentCustomValidator
- func (v *AgentCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *AgentCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (v *AgentCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type AgentGatewayClassCustomValidator
- func (v *AgentGatewayClassCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *AgentGatewayClassCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (v *AgentGatewayClassCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type AgentGatewayCustomDefaulter
Constants ¶
const (
DefaultClassAnnotation = "agentgatewayclass.kubernetes.io/is-default-class"
)
const (
DefaultTemplateImageAdk = "ghcr.io/agentic-layer/agent-template-adk:0.3.0"
)
Variables ¶
This section is empty.
Functions ¶
func SetupAgentGatewayClassWebhookWithManager ¶ added in v0.4.5
SetupAgentGatewayClassWebhookWithManager registers the webhook for AgentGatewayClass in the manager.
func SetupAgentGatewayWebhookWithManager ¶ added in v0.5.0
SetupAgentGatewayWebhookWithManager registers the webhook for AgentGateway in the manager.
func SetupAgentWebhookWithManager ¶
SetupAgentWebhookWithManager registers the webhook for Agent in the manager.
Types ¶
type AgentCustomDefaulter ¶
type AgentCustomDefaulter struct {
DefaultFramework string
DefaultReplicas int32
DefaultPort int32
DefaultPortGoogleAdk int32
Recorder record.EventRecorder
}
AgentCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Agent 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 AgentCustomValidator ¶ added in v0.4.0
type AgentCustomValidator struct{}
AgentCustomValidator struct is responsible for validating the Agent 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 (*AgentCustomValidator) ValidateCreate ¶ added in v0.4.0
func (v *AgentCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the Kind Agent.
func (*AgentCustomValidator) ValidateDelete ¶ added in v0.4.0
func (v *AgentCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the Kind Agent.
func (*AgentCustomValidator) ValidateUpdate ¶ added in v0.4.0
func (v *AgentCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the Kind Agent.
type AgentGatewayClassCustomValidator ¶ added in v0.4.5
AgentGatewayClassCustomValidator struct is responsible for validating the AgentGatewayClass 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 (*AgentGatewayClassCustomValidator) ValidateCreate ¶ added in v0.4.5
func (v *AgentGatewayClassCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the Kind AgentGatewayClass.
func (*AgentGatewayClassCustomValidator) ValidateDelete ¶ added in v0.4.5
func (v *AgentGatewayClassCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the Kind AgentGatewayClass.
func (*AgentGatewayClassCustomValidator) ValidateUpdate ¶ added in v0.4.5
func (v *AgentGatewayClassCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the Kind AgentGatewayClass.
type AgentGatewayCustomDefaulter ¶ added in v0.5.0
type AgentGatewayCustomDefaulter struct {
DefaultReplicas int32
Recorder record.EventRecorder
}
AgentGatewayCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind AgentGateway 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.