webhook

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CapName added in v0.5.0

func CapName(obj client.Object, l logr.Logger, length int) error

capName validates that the name is not longer than the provided length.

func InvalidateDoubleDashesInName added in v0.5.0

func InvalidateDoubleDashesInName(obj client.Object, l logr.Logger) error

invalidateDoubleDashes validates that the object name does not contain double dashes.

func SetupWebhook added in v0.5.0

func SetupWebhook(mgr ctrl.Manager, obj runtime.Object, webhookFuncs WebhookFuncs) error

func ValidateImmutableField added in v0.5.0

func ValidateImmutableField(oldValue, newValue string, path *field.Path) *field.Error

func ValidateLabelOwnedBy added in v0.6.0

func ValidateLabelOwnedBy(ctx context.Context, c client.Client, resourceObj v1.Object) string

ValidateLabelOwnedBy validates that the owned-by label is present and that it references an existing Team.

func ValidateURL added in v0.5.0

func ValidateURL(str string) bool

Types

type WebhookFuncs added in v0.5.0

type WebhookFuncs struct {
	DefaultFunc        defaultFunc
	ValidateCreateFunc genericFunc
	ValidateUpdateFunc updateFunc
	ValidateDeleteFunc genericFunc
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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