Documentation
¶
Overview ¶
Package v1beta1 contains webhook implementations for v1beta1 API resources
Index ¶
- Variables
- func SetupAnsibleTestWebhookWithManager(mgr ctrl.Manager) error
- func SetupHorizonTestWebhookWithManager(mgr ctrl.Manager) error
- func SetupTempestWebhookWithManager(mgr ctrl.Manager) error
- func SetupTobikoWebhookWithManager(mgr ctrl.Manager) error
- type AnsibleTestCustomDefaulter
- type AnsibleTestCustomValidator
- func (v *AnsibleTestCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *AnsibleTestCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *AnsibleTestCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type HorizonTestCustomDefaulter
- type HorizonTestCustomValidator
- func (v *HorizonTestCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *HorizonTestCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *HorizonTestCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type TempestCustomDefaulter
- type TempestCustomValidator
- func (v *TempestCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *TempestCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *TempestCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type TobikoCustomDefaulter
- type TobikoCustomValidator
- func (v *TobikoCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *TobikoCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *TobikoCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
var ( // ErrInvalidAnsibleTestType is returned when an unexpected object type is passed to the webhook ErrInvalidAnsibleTestType = errors.New("invalid object type for AnsibleTest webhook") )
var ( // ErrInvalidHorizonTestType is returned when an unexpected object type is passed to the webhook ErrInvalidHorizonTestType = errors.New("invalid object type for HorizonTest webhook") )
var ( // ErrInvalidTempestType is returned when an unexpected object type is passed to the webhook ErrInvalidTempestType = errors.New("invalid object type for Tempest webhook") )
var ( // ErrInvalidTobikoType is returned when an unexpected object type is passed to the webhook ErrInvalidTobikoType = errors.New("invalid object type for Tobiko webhook") )
Functions ¶
func SetupAnsibleTestWebhookWithManager ¶
SetupAnsibleTestWebhookWithManager registers the webhook for AnsibleTest in the manager.
func SetupHorizonTestWebhookWithManager ¶
SetupHorizonTestWebhookWithManager registers the webhook for HorizonTest in the manager.
func SetupTempestWebhookWithManager ¶
SetupTempestWebhookWithManager registers the webhook for Tempest in the manager.
func SetupTobikoWebhookWithManager ¶
SetupTobikoWebhookWithManager registers the webhook for Tobiko in the manager.
Types ¶
type AnsibleTestCustomDefaulter ¶
type AnsibleTestCustomDefaulter struct {
}
AnsibleTestCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind AnsibleTest 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 AnsibleTestCustomValidator ¶
type AnsibleTestCustomValidator struct {
}
AnsibleTestCustomValidator struct is responsible for validating the AnsibleTest 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 (*AnsibleTestCustomValidator) ValidateCreate ¶
func (v *AnsibleTestCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type AnsibleTest.
func (*AnsibleTestCustomValidator) ValidateDelete ¶
func (v *AnsibleTestCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type AnsibleTest.
func (*AnsibleTestCustomValidator) ValidateUpdate ¶
func (v *AnsibleTestCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type AnsibleTest.
type HorizonTestCustomDefaulter ¶
type HorizonTestCustomDefaulter struct {
}
HorizonTestCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind HorizonTest 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 HorizonTestCustomValidator ¶
type HorizonTestCustomValidator struct {
}
HorizonTestCustomValidator struct is responsible for validating the HorizonTest 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 (*HorizonTestCustomValidator) ValidateCreate ¶
func (v *HorizonTestCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type HorizonTest.
func (*HorizonTestCustomValidator) ValidateDelete ¶
func (v *HorizonTestCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type HorizonTest.
func (*HorizonTestCustomValidator) ValidateUpdate ¶
func (v *HorizonTestCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type HorizonTest.
type TempestCustomDefaulter ¶
type TempestCustomDefaulter struct {
}
TempestCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Tempest 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 TempestCustomValidator ¶
type TempestCustomValidator struct {
}
TempestCustomValidator struct is responsible for validating the Tempest 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 (*TempestCustomValidator) ValidateCreate ¶
func (v *TempestCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Tempest.
func (*TempestCustomValidator) ValidateDelete ¶
func (v *TempestCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Tempest.
func (*TempestCustomValidator) ValidateUpdate ¶
func (v *TempestCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Tempest.
type TobikoCustomDefaulter ¶
type TobikoCustomDefaulter struct {
}
TobikoCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Tobiko 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 TobikoCustomValidator ¶
type TobikoCustomValidator struct {
}
TobikoCustomValidator struct is responsible for validating the Tobiko 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 (*TobikoCustomValidator) ValidateCreate ¶
func (v *TobikoCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Tobiko.
func (*TobikoCustomValidator) ValidateDelete ¶
func (v *TobikoCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Tobiko.
func (*TobikoCustomValidator) ValidateUpdate ¶
func (v *TobikoCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Tobiko.