Documentation
¶
Index ¶
- func CapName(obj client.Object, l logr.Logger, length int) error
- func InvalidateDoubleDashesInName(obj client.Object, l logr.Logger) error
- func SetupWebhook(mgr ctrl.Manager, obj runtime.Object, webhookFuncs WebhookFuncs) error
- func ValidateImmutableField(oldValue, newValue string, path *field.Path) *field.Error
- func ValidateLabelOwnedBy(ctx context.Context, c client.Client, resourceObj v1.Object) string
- func ValidateURL(str string) bool
- type WebhookFuncs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CapName ¶ added in v0.5.0
capName validates that the name is not longer than the provided length.
func InvalidateDoubleDashesInName ¶ added in v0.5.0
invalidateDoubleDashes validates that the object name does not contain double dashes.
func SetupWebhook ¶ added in v0.5.0
func ValidateImmutableField ¶ added in v0.5.0
func ValidateLabelOwnedBy ¶ added in v0.6.0
ValidateLabelOwnedBy validates that the owned-by label is present and that it references an existing Team.
func ValidateURL ¶ added in v0.5.0
Types ¶
type WebhookFuncs ¶ added in v0.5.0
type WebhookFuncs struct {
DefaultFunc defaultFunc
ValidateCreateFunc genericFunc
ValidateUpdateFunc updateFunc
ValidateDeleteFunc genericFunc
}
Click to show internal directories.
Click to hide internal directories.