validation

package
v0.0.0-...-be2354b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxPeriodSeconds is the largest allowed scaling policy period (in seconds)
	MaxPeriodSeconds int32 = 1800
	// MaxStabilizationWindowSeconds is the largest allowed stabilization window (in seconds)
	MaxStabilizationWindowSeconds int32 = 3600
)

Variables

View Source
var ValidateHorizontalPodAutoscalerName = apimachineryvalidation.NameIsDNSSubdomain

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.GeneralPodAutoscaler) field.ErrorList

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

func ValidateHorizontalPodAutoscalerStatusUpdate

func ValidateHorizontalPodAutoscalerStatusUpdate(newAutoscaler, oldAutoscaler *autoscaling.GeneralPodAutoscaler) 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.GeneralPodAutoscaler) field.ErrorList

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL