v1beta1

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

TODO - remove once hub webhooks are implemented.

TODO - remove once spoke webhooks are implemented.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupHubWebhookWithManager

func SetupHubWebhookWithManager(mgr ctrl.Manager) error

SetupHubWebhookWithManager registers the webhook for Hub in the manager.

func SetupSpokeWebhookWithManager

func SetupSpokeWebhookWithManager(mgr ctrl.Manager) error

SetupSpokeWebhookWithManager registers the webhook for Spoke in the manager.

Types

type HubCustomDefaulter

type HubCustomDefaulter struct {
}

HubCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Hub 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 (*HubCustomDefaulter) Default

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

type HubCustomValidator

type HubCustomValidator struct {
}

HubCustomValidator struct is responsible for validating the Hub 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 (*HubCustomValidator) ValidateCreate

func (v *HubCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*HubCustomValidator) ValidateDelete

func (v *HubCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)

ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Hub.

func (*HubCustomValidator) ValidateUpdate

func (v *HubCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Hub.

type SpokeCustomDefaulter

type SpokeCustomDefaulter struct {
}

SpokeCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Spoke 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 (*SpokeCustomDefaulter) Default

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

type SpokeCustomValidator

type SpokeCustomValidator struct {
}

SpokeCustomValidator struct is responsible for validating the Spoke 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 (*SpokeCustomValidator) ValidateCreate

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

func (*SpokeCustomValidator) ValidateDelete

ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Spoke.

func (*SpokeCustomValidator) ValidateUpdate

func (v *SpokeCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Spoke.

Jump to

Keyboard shortcuts

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