kubernetesk8s.io/kubernetes/pkg/apis/autoscaling/validation Index | Files

package validation

import "k8s.io/kubernetes/pkg/apis/autoscaling/validation"

Index

Variables

var ValidateHorizontalPodAutoscalerName = apivalidation.ValidateReplicationControllerName

ValidateHorizontalPodAutoscalerName can be used to check whether the given autoscaler name is valid. Prefix indicates this name will be used as part of generation, in which case trailing dashes are allowed.

Functions

func ValidateCrossVersionObjectReference

func ValidateCrossVersionObjectReference(ref autoscaling.CrossVersionObjectReference, fldPath *field.Path) field.ErrorList

ValidateCrossVersionObjectReference validates a CrossVersionObjectReference and returns an ErrorList with any errors.

func ValidateHorizontalPodAutoscaler

func ValidateHorizontalPodAutoscaler(autoscaler *autoscaling.HorizontalPodAutoscaler) field.ErrorList

ValidateHorizontalPodAutoscaler validates a HorizontalPodAutoscaler and returns an ErrorList with any errors.

func ValidateHorizontalPodAutoscalerStatusUpdate

func ValidateHorizontalPodAutoscalerStatusUpdate(newAutoscaler, oldAutoscaler *autoscaling.HorizontalPodAutoscaler) field.ErrorList

ValidateHorizontalPodAutoscalerStatusUpdate validates an update to status on a HorizontalPodAutoscaler and returns an ErrorList with any errors.

func ValidateHorizontalPodAutoscalerUpdate

func ValidateHorizontalPodAutoscalerUpdate(newAutoscaler, oldAutoscaler *autoscaling.HorizontalPodAutoscaler) field.ErrorList

ValidateHorizontalPodAutoscalerUpdate validates an update to a HorizontalPodAutoscaler and returns an ErrorList with any errors.

func ValidateScale

func ValidateScale(scale *autoscaling.Scale) field.ErrorList

ValidateScale validates a Scale and returns an ErrorList with any errors.

Source Files

validation.go

Version
v1.17.12-rc.0
Published
Aug 13, 2020
Platform
js/wasm
Imports
10 packages
Last checked
2 minutes ago

Tools for package owners.