v1alpha1

package
v0.0.0-...-f08fe41 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupEnvironmentRequestWebhookWithManager

func SetupEnvironmentRequestWebhookWithManager(mgr ctrl.Manager) error

SetupEnvironmentRequestWebhookWithManager registers the webhook for EnvironmentRequest in the manager.

func SetupProviderWebhookWithManager

func SetupProviderWebhookWithManager(mgr ctrl.Manager) error

SetupProviderWebhookWithManager registers the webhook for Provider in the manager.

func SetupTestRunWebhookWithManager

func SetupTestRunWebhookWithManager(mgr ctrl.Manager) error

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.

func (*EnvironmentRequestCustomDefaulter) Default

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

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.

func (*ProviderCustomDefaulter) Default

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

func (*ProviderCustomDefaulter) Get

func (r *ProviderCustomDefaulter) Get(ctx context.Context, provider *etosv1alpha1.Provider, client client.Client, namespace string) ([]byte, error)

Get the value from a secret or configmap ref.

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

ValidateCreate validates the creation of a Provider.

func (*ProviderCustomValidator) ValidateDelete

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.

func (*TestRunCustomDefaulter) Default

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

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

ValidateCreate validates the creation of a TestRun.

func (*TestRunCustomValidator) ValidateDelete

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.

Jump to

Keyboard shortcuts

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