Documentation ¶
Index ¶
- func AccumulateUniqueHostPorts(containers []v1.Container, accumulator *sets.String, fldPath *field.Path) field.ErrorList
- func ValidateContainerResourceName(value core.ResourceName, fldPath *field.Path) field.ErrorList
- func ValidateNonnegativeQuantity(value resource.Quantity, fldPath *field.Path) field.ErrorList
- func ValidatePodLogOptions(opts *v1.PodLogOptions) field.ErrorList
- func ValidateResourceQuantityValue(resource core.ResourceName, value resource.Quantity, fldPath *field.Path) field.ErrorList
- func ValidateResourceRequirements(requirements *v1.ResourceRequirements, fldPath *field.Path) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccumulateUniqueHostPorts ¶
func AccumulateUniqueHostPorts(containers []v1.Container, accumulator *sets.String, fldPath *field.Path) field.ErrorList
AccumulateUniqueHostPorts checks all the containers for duplicates ports. Any duplicate port will be returned in the ErrorList.
func ValidateContainerResourceName ¶ added in v1.20.0
ValidateContainerResourceName checks the name of resource specified for a container
func ValidateNonnegativeQuantity ¶
ValidateNonnegativeQuantity checks that a Quantity is not negative.
func ValidatePodLogOptions ¶
func ValidatePodLogOptions(opts *v1.PodLogOptions) field.ErrorList
ValidatePodLogOptions checks if options that are set are at the correct value. Any incorrect value will be returned to the ErrorList.
func ValidateResourceQuantityValue ¶
func ValidateResourceQuantityValue(resource core.ResourceName, value resource.Quantity, fldPath *field.Path) field.ErrorList
ValidateResourceQuantityValue enforces that specified quantity is valid for specified resource
func ValidateResourceRequirements ¶
func ValidateResourceRequirements(requirements *v1.ResourceRequirements, fldPath *field.Path) field.ErrorList
ValidateResourceRequirements will check if any of the resource Limits/Requests are of a valid value. Any incorrect value will be added to the ErrorList.
Types ¶
This section is empty.