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 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
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 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.
Source Files ¶
validation.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 3 hours ago –
Tools for package owners.