Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateDNS1123Label ¶ added in v0.5.0
ValidateDNS1123Label - validates a list of strings are RFC 1123 label conform. Using the correction parameter the validation.DNS1123LabelMaxLength (63) get reduced by the correction value
example usage:
ValidateDNS1123Label(<path>, {"foo", "bar"}, 5)
func ValidateStorageRequest ¶
func ValidateStorageRequest(basePath *field.Path, req string, min string, err bool) (admission.Warnings, field.ErrorList)
ValidateStorageRequest - validates a storage request meets a provided min size. Depending on the err (bool) the check result is either a warning or an invalid error.
example usage:
return a warning
ValidateStorageRequest(<path>, "500M", "5G", false)
return an error
ValidateStorageRequest(<path>, "500M", "5G", true)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.