v3

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupWFSWebhookWithManager

func SetupWFSWebhookWithManager(mgr ctrl.Manager) error

SetupWFSWebhookWithManager registers the webhook for WFS in the manager.

func SetupWMSWebhookWithManager

func SetupWMSWebhookWithManager(mgr ctrl.Manager) error

SetupWMSWebhookWithManager registers the webhook for WMS in the manager.

Types

type WFSCustomValidator

type WFSCustomValidator struct {
	Client client.Client
}

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

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

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

func (*WFSCustomValidator) ValidateDelete

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

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

func (*WFSCustomValidator) ValidateUpdate

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

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

type WMSCustomValidator

type WMSCustomValidator struct {
	Client client.Client
}

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

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

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

func (*WMSCustomValidator) ValidateDelete

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

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

func (*WMSCustomValidator) ValidateUpdate

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

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

Jump to

Keyboard shortcuts

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