webhooks

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupDatabaseClusterReferenceWebhookWithManager

func SetupDatabaseClusterReferenceWebhookWithManager(mgr ctrl.Manager, godoClient *godo.Client) error

func SetupDatabaseClusterWebhookWithManager

func SetupDatabaseClusterWebhookWithManager(mgr ctrl.Manager, godoClient *godo.Client) error

func SetupDatabaseUserReferenceWebhookWithManager

func SetupDatabaseUserReferenceWebhookWithManager(mgr ctrl.Manager, godoClient *godo.Client) error

func SetupDatabaseUserWebhookWithManager

func SetupDatabaseUserWebhookWithManager(mgr ctrl.Manager, godoClient *godo.Client) error

Types

type DatabaseClusterReferenceValidator

type DatabaseClusterReferenceValidator struct{}

+kubebuilder:webhook:path=/validate-databases-digitalocean-com-v1alpha1-databaseclusterreference,mutating=false,failurePolicy=fail,sideEffects=None,groups=databases.digitalocean.com,resources=databaseclusterreferences,verbs=create;update,versions=v1alpha1,name=vdatabaseclusterreference.kb.io,admissionReviewVersions=v1

func (*DatabaseClusterReferenceValidator) ValidateCreate

func (v *DatabaseClusterReferenceValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

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

func (*DatabaseClusterReferenceValidator) ValidateDelete

func (v *DatabaseClusterReferenceValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

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

func (*DatabaseClusterReferenceValidator) ValidateUpdate

func (v *DatabaseClusterReferenceValidator) ValidateUpdate(ctx context.Context, objOld, objNew runtime.Object) (warnings admission.Warnings, err error)

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

type DatabaseClusterValidator

type DatabaseClusterValidator struct{}

+kubebuilder:webhook:path=/validate-databases-digitalocean-com-v1alpha1-databasecluster,mutating=false,failurePolicy=fail,sideEffects=None,groups=databases.digitalocean.com,resources=databaseclusters,verbs=create;update,versions=v1alpha1,name=vdatabasecluster.kb.io,admissionReviewVersions=v1

func (*DatabaseClusterValidator) ValidateCreate

func (v *DatabaseClusterValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

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

func (*DatabaseClusterValidator) ValidateDelete

func (v *DatabaseClusterValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

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

func (*DatabaseClusterValidator) ValidateUpdate

func (v *DatabaseClusterValidator) ValidateUpdate(ctx context.Context, objOld, objNew runtime.Object) (warnings admission.Warnings, err error)

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

type DatabaseUserReferenceValidator

type DatabaseUserReferenceValidator struct{}

+kubebuilder:webhook:path=/validate-databases-digitalocean-com-v1alpha1-databaseuserreference,mutating=false,failurePolicy=fail,sideEffects=None,groups=databases.digitalocean.com,resources=databaseuserreferences,verbs=create;update,versions=v1alpha1,name=vdatabaseuserreference.kb.io,admissionReviewVersions=v1

func (*DatabaseUserReferenceValidator) ValidateCreate

func (v *DatabaseUserReferenceValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

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

func (*DatabaseUserReferenceValidator) ValidateDelete

func (v *DatabaseUserReferenceValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

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

func (*DatabaseUserReferenceValidator) ValidateUpdate

func (v *DatabaseUserReferenceValidator) ValidateUpdate(ctx context.Context, objOld, objNew runtime.Object) (warnings admission.Warnings, err error)

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

type DatabaseUserValidator

type DatabaseUserValidator struct{}

+kubebuilder:webhook:path=/validate-databases-digitalocean-com-v1alpha1-databaseuser,mutating=false,failurePolicy=fail,sideEffects=None,groups=databases.digitalocean.com,resources=databaseusers,verbs=create;update,versions=v1alpha1,name=vdatabaseuser.kb.io,admissionReviewVersions=v1

func (*DatabaseUserValidator) ValidateCreate

func (v *DatabaseUserValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

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

func (*DatabaseUserValidator) ValidateDelete

func (v *DatabaseUserValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

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

func (*DatabaseUserValidator) ValidateUpdate

func (v *DatabaseUserValidator) ValidateUpdate(ctx context.Context, objOld, objNew runtime.Object) (warnings admission.Warnings, err error)

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

Jump to

Keyboard shortcuts

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