v1beta1

package
v0.0.0-...-9117f35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1beta1 contains webhook implementations for v1beta1 API resources

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidAnsibleTestType is returned when an unexpected object type is passed to the webhook
	ErrInvalidAnsibleTestType = errors.New("invalid object type for AnsibleTest webhook")
)
View Source
var (
	// ErrInvalidHorizonTestType is returned when an unexpected object type is passed to the webhook
	ErrInvalidHorizonTestType = errors.New("invalid object type for HorizonTest webhook")
)
View Source
var (
	// ErrInvalidTempestType is returned when an unexpected object type is passed to the webhook
	ErrInvalidTempestType = errors.New("invalid object type for Tempest webhook")
)
View Source
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

func SetupAnsibleTestWebhookWithManager(mgr ctrl.Manager) error

SetupAnsibleTestWebhookWithManager registers the webhook for AnsibleTest in the manager.

func SetupHorizonTestWebhookWithManager

func SetupHorizonTestWebhookWithManager(mgr ctrl.Manager) error

SetupHorizonTestWebhookWithManager registers the webhook for HorizonTest in the manager.

func SetupTempestWebhookWithManager

func SetupTempestWebhookWithManager(mgr ctrl.Manager) error

SetupTempestWebhookWithManager registers the webhook for Tempest in the manager.

func SetupTobikoWebhookWithManager

func SetupTobikoWebhookWithManager(mgr ctrl.Manager) error

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.

func (*AnsibleTestCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind AnsibleTest.

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

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type AnsibleTest.

func (*AnsibleTestCustomValidator) ValidateDelete

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.

func (*HorizonTestCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind HorizonTest.

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

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type HorizonTest.

func (*HorizonTestCustomValidator) ValidateDelete

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.

func (*TempestCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind Tempest.

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

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Tempest.

func (*TempestCustomValidator) ValidateDelete

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.

func (*TobikoCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind Tobiko.

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

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Tobiko.

func (*TobikoCustomValidator) ValidateDelete

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL