Documentation
¶
Index ¶
- func SetupEnvironmentRequestWebhookWithManager(mgr ctrl.Manager) error
- func SetupProviderWebhookWithManager(mgr ctrl.Manager) error
- func SetupTestRunWebhookWithManager(mgr ctrl.Manager) error
- type EnvironmentRequestCustomDefaulter
- type ProviderCustomDefaulter
- type ProviderCustomValidator
- func (d *ProviderCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (d *ProviderCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (d *ProviderCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type TestRunCustomDefaulter
- type TestRunCustomValidator
- func (d *TestRunCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (d *TestRunCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (d *TestRunCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupEnvironmentRequestWebhookWithManager ¶
SetupEnvironmentRequestWebhookWithManager registers the webhook for EnvironmentRequest in the manager.
func SetupProviderWebhookWithManager ¶
SetupProviderWebhookWithManager registers the webhook for Provider in the manager.
func SetupTestRunWebhookWithManager ¶
SetupTestRunWebhookWithManager registers the webhook for TestRun in the manager.
Types ¶
type EnvironmentRequestCustomDefaulter ¶
type EnvironmentRequestCustomDefaulter struct{}
EnvironmentRequestCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind EnvironmentRequest 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 ProviderCustomDefaulter ¶
type ProviderCustomDefaulter struct{}
ProviderCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Provider 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 ProviderCustomValidator ¶
type ProviderCustomValidator struct{}
ProviderCustomValidator struct is responsible for validating the Provider 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 (*ProviderCustomValidator) ValidateCreate ¶
func (d *ProviderCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate validates the creation of a Provider.
func (*ProviderCustomValidator) ValidateDelete ¶
func (d *ProviderCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete validates the deletion of a Provider.
func (*ProviderCustomValidator) ValidateUpdate ¶
func (d *ProviderCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate validates the updates of a Provider.
type TestRunCustomDefaulter ¶
type TestRunCustomDefaulter struct{}
TestRunCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind TestRun 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 TestRunCustomValidator ¶
type TestRunCustomValidator struct{}
TestRunCustomValidator struct is responsible for validating the TestRun 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 (*TestRunCustomValidator) ValidateCreate ¶
func (d *TestRunCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate validates the creation of a TestRun.
func (*TestRunCustomValidator) ValidateDelete ¶
func (d *TestRunCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete validates the deletion of a TestRun.
func (*TestRunCustomValidator) ValidateUpdate ¶
func (d *TestRunCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate validates the updates of a TestRun.