package validation
import "k8s.io/kubernetes/pkg/apis/core/v1/validation"
Index ¶
- func AccumulateUniqueHostPorts(containers []v1.Container, accumulator *sets.String, fldPath *field.Path) field.ErrorList
- func ValidateContainerResourceName(value string, 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 string, value resource.Quantity, fldPath *field.Path) field.ErrorList
- func ValidateResourceRequirements(requirements *v1.ResourceRequirements, fldPath *field.Path) field.ErrorList
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 ¶
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 string, 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.
Source Files ¶
validation.go
- Version
- v1.23.14
- Published
- Nov 9, 2022
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 54 seconds ago –
Tools for package owners.