package
0.33.0-alpha.2
Repository: https://github.com/kubernetes/apimachinery.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NameIsDNS1035Label is a ValidateNameFunc for names that must be a DNS 952 label.
NameIsDNSLabel is a ValidateNameFunc for names that must be a DNS 1123 label.
NameIsDNSSubdomain is a ValidateNameFunc for names that must be a DNS subdomain.
ValidateAnnotations validates that a set of annotations are correctly defined.
No description provided by the author
ValidateFinalizerName validates finalizer names.
ValidateFinalizers tests if the finalizers name are valid, and if there are conflicting finalizers.
ValidateImmutableField validates the new value and the old value are deeply equal.
ValidateNoNewFinalizers validates the new finalizers has no new finalizers compare to old finalizers.
ValidateNonnegativeField validates that given value is not negative.
ValidateObjectMeta validates an object's metadata on creation.
ValidateObjectMetaAccessor validates an object's metadata on creation.
ValidateObjectMetaAccessorUpdate validates an object's metadata when updated.
ValidateObjectMetaUpdate validates an object's metadata when updated.
ValidateOwnerReferences validates that a set of owner references are correctly defined.

# Constants

FieldImmutableErrorMsg is a error message for field is immutable.
IsNegativeErrorMsg is a error message for value must be greater than or equal to 0.
256 kB.

# Variables

BannedOwners is a black list of object that are not allowed to be owners.
ValidateNamespaceName can be used to check whether the given namespace name is valid.
ValidateServiceAccountName can be used to check whether the given service account name is valid.

# Type aliases

ValidateNameFunc validates that the provided name is valid for a given resource type.