Documentation
¶
Index ¶
- Variables
- func ReturnInvalidError(gk schema.GroupKind, name string, errs field.ErrorList) error
- func ValidateAddressable(addr duckv1.Addressable, optional bool, fld *field.Path) field.ErrorList
- func ValidateCommonObject(obj metav1.Object) field.ErrorList
- func ValidateDuplicatedName(fld *field.Path, name string, names sets.String) (errs field.ErrorList)
- func ValidateIntegrationClassName(name string, fld *field.Path) field.ErrorList
- func ValidateItemName(name string, prefix bool, fld *field.Path) field.ErrorList
- func ValidateName(obj metav1.Object, fld *field.Path) field.ErrorList
- func ValidateObjectReference(objref *corev1.ObjectReference, optional, needsResourceType bool, ...) field.ErrorList
- func ValidateURL(uri *apis.URL, path *field.Path) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
var ValidateAnnotations = apimachineryvalidation.ValidateAnnotations
ValidateAnnotations to contain size and data format
Functions ¶
func ReturnInvalidError ¶
ReturnInvalidError returns a Invalid error if the error list is not empty
func ValidateAddressable ¶
ValidateAddressable validates an addressable for non-optional addresses
func ValidateCommonObject ¶
ValidateCommonObject common validations for objects in katanomi, includes, name, annotations etc.
func ValidateDuplicatedName ¶
ValidateDuplicatedName makes sure there is only one name in the same set
func ValidateIntegrationClassName ¶
ValidateIntegrationClassName validates class name TODO: should be moved to katanomi/pkg
func ValidateItemName ¶
ValidateItemName validates a name of an item in a slice. this is used in
Integration resources, volumes and etc
func ValidateName ¶
ValidateName standard name validation for all katanomi types uses the same validation of namespace objects
func ValidateObjectReference ¶
func ValidateObjectReference(objref *corev1.ObjectReference, optional, needsResourceType bool, fld *field.Path) field.ErrorList
ValidateObjectReference validates an object reference
Types ¶
This section is empty.