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

ValidateHorizontalPodAutoscaler 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.

var ValidateVerticalPodAutoscalerName = corevalidation.ValidateReplicationControllerName

ValidateVerticalPodAutoscalerName verifies that the vertical pod autoscaler name is valid.

Functions

func ValidateCrossVersionObjectReference

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

func ValidateHorizontalPodAutoscaler

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

func ValidateHorizontalPodAutoscalerStatusUpdate

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

func ValidateHorizontalPodAutoscalerUpdate

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

func ValidateScale

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

func ValidateVerticalPodAutoscaler

func ValidateVerticalPodAutoscaler(autoscaler *autoscaling.VerticalPodAutoscaler) field.ErrorList

ValidateVerticalPodAutoscaler that VerticalPodAutoscaler is valid.

func ValidateVerticalPodAutoscalerStatusUpdate

func ValidateVerticalPodAutoscalerStatusUpdate(newAutoscaler, oldAutoscaler *autoscaling.VerticalPodAutoscaler) field.ErrorList

ValidateVerticalPodAutoscalerStatusUpdate that VerticalPodAutoscaler status update is valid.

func ValidateVerticalPodAutoscalerUpdate

func ValidateVerticalPodAutoscalerUpdate(newAutoscaler, oldAutoscaler *autoscaling.VerticalPodAutoscaler) field.ErrorList

ValidateVerticalPodAutoscalerUpdate that VerticalPodAutoscaler update is valid.

Source Files

validation.go vpa.go

Version
v1.11.0-beta.2
Published
Jun 7, 2018
Platform
js/wasm
Imports
8 packages
Last checked
30 minutes ago

Tools for package owners.