Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidateAccountName = apimachineryvalidation.NameIsDNSLabel
Functions ¶
func ValidateObjectMeta ¶
func ValidateObjectMeta(meta *metav1.ObjectMeta, requiresNamespace bool, nameFn ValidateNameFunc, fldPath *field.Path) field.ErrorList
ValidateObjectMeta validates an object's metadata on creation. It expects that name generation has already been performed. It doesn't return an error for rootscoped resources with namespace, because namespace should already be cleared before.
Types ¶
type ValidateNameFunc ¶
type ValidateNameFunc apimachineryvalidation.ValidateNameFunc
Click to show internal directories.
Click to hide internal directories.