Documentation
¶
Index ¶
- Constants
- func SetupAgentGatewayWebhookWithManager(mgr ctrl.Manager) error
- func SetupAgentWebhookWithManager(mgr ctrl.Manager, config AgentWebhookConfig) error
- func SetupToolServerWebhookWithManager(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 AgentGatewayCustomDefaulter
- type AgentWebhookConfig
- type ToolServerCustomDefaulter
- type ToolServerCustomValidator
- func (v *ToolServerCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ToolServerCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (v *ToolServerCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
const (
DefaultTemplateImageAdk = "ghcr.io/agentic-layer/agent-template-adk:0.4.0"
)
Variables ¶
This section is empty.
Functions ¶
func SetupAgentGatewayWebhookWithManager ¶ added in v0.5.0
SetupAgentGatewayWebhookWithManager registers the webhook for AgentGateway in the manager.
func SetupAgentWebhookWithManager ¶
func SetupAgentWebhookWithManager(mgr ctrl.Manager, config AgentWebhookConfig) error
SetupAgentWebhookWithManager registers the webhook for Agent in the manager.
func SetupToolServerWebhookWithManager ¶ added in v0.7.0
SetupToolServerWebhookWithManager registers the webhook for ToolServer 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 {
// AllowHostPath controls whether hostPath volumes are allowed.
AllowHostPath bool
}
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 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.
type AgentWebhookConfig ¶ added in v0.10.0
type AgentWebhookConfig struct {
// AllowHostPath controls whether hostPath volumes are allowed in Agent resources.
// When false (default), hostPath volumes will be rejected for security reasons.
AllowHostPath bool
}
AgentWebhookConfig contains configuration for the Agent webhook.
type ToolServerCustomDefaulter ¶ added in v0.7.0
type ToolServerCustomDefaulter struct{}
ToolServerCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind ToolServer 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 ToolServerCustomValidator ¶ added in v0.7.0
type ToolServerCustomValidator struct{}
ToolServerCustomValidator struct is responsible for validating the ToolServer 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 (*ToolServerCustomValidator) ValidateCreate ¶ added in v0.7.0
func (v *ToolServerCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type ToolServer.
func (*ToolServerCustomValidator) ValidateDelete ¶ added in v0.7.0
func (v *ToolServerCustomValidator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type ToolServer.
func (*ToolServerCustomValidator) ValidateUpdate ¶ added in v0.7.0
func (v *ToolServerCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type ToolServer.