kubernetesk8s.io/kubernetes/pkg/apis/core/v1/validation Index | Files

package validation

import "k8s.io/kubernetes/pkg/apis/core/v1/validation"

Index

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

func ValidateContainerResourceName(value string, fldPath *field.Path) field.ErrorList

ValidateContainerResourceName checks the name of resource specified for a container

func ValidateNonnegativeQuantity

func ValidateNonnegativeQuantity(value resource.Quantity, fldPath *field.Path) field.ErrorList

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.