Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.