Documentation
¶
Index ¶
- func SetupFunctionWebhookWithManager(mgr ctrl.Manager) error
- func SetupPackagesWebhookWithManager(mgr ctrl.Manager) error
- type FunctionCustomDefaulter
- type FunctionCustomValidator
- func (v *FunctionCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *FunctionCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *FunctionCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type PackagesCustomDefaulter
- type PackagesCustomValidator
- func (v *PackagesCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *PackagesCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *PackagesCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupFunctionWebhookWithManager ¶
SetupFunctionWebhookWithManager registers the webhook for Function in the manager.
func SetupPackagesWebhookWithManager ¶
SetupPackagesWebhookWithManager registers the webhook for Packages in the manager.
Types ¶
type FunctionCustomDefaulter ¶
type FunctionCustomDefaulter struct {
}
FunctionCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Function 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 FunctionCustomValidator ¶
FunctionCustomValidator struct is responsible for validating the Function 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 (*FunctionCustomValidator) ValidateCreate ¶
func (v *FunctionCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Function.
func (*FunctionCustomValidator) ValidateDelete ¶
func (v *FunctionCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Function.
func (*FunctionCustomValidator) ValidateUpdate ¶
func (v *FunctionCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Function.
type PackagesCustomDefaulter ¶
type PackagesCustomDefaulter struct {
}
PackagesCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Packages 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 PackagesCustomValidator ¶
PackagesCustomValidator struct is responsible for validating the Packages 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 (*PackagesCustomValidator) ValidateCreate ¶
func (v *PackagesCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Packages.
func (*PackagesCustomValidator) ValidateDelete ¶
func (v *PackagesCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Packages.
func (*PackagesCustomValidator) ValidateUpdate ¶
func (v *PackagesCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Packages.