Documentation
¶
Overview ¶
TODO - remove once hub webhooks are implemented.
TODO - remove once spoke webhooks are implemented.
Index ¶
- func SetupHubWebhookWithManager(mgr ctrl.Manager) error
- func SetupSpokeWebhookWithManager(mgr ctrl.Manager) error
- type HubCustomDefaulter
- type HubCustomValidator
- func (v *HubCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *HubCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *HubCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type SpokeCustomDefaulter
- type SpokeCustomValidator
- func (v *SpokeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *SpokeCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *SpokeCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupHubWebhookWithManager ¶
SetupHubWebhookWithManager registers the webhook for Hub in the manager.
func SetupSpokeWebhookWithManager ¶
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.
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.
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 ¶
func (v *SpokeCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Spoke.
func (*SpokeCustomValidator) ValidateDelete ¶
func (v *SpokeCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
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.