v1alpha1

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: autoscaling.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type GPAControllerConfiguration

type GPAControllerConfiguration struct {
	metav1.TypeMeta `json:",inline"`
	// generalPodAutoscalerSyncPeriod is the period for syncing the number of
	// pods in general pod autoscaler.
	GeneralPodAutoscalerSyncPeriod metav1.Duration
	// generalPodAutoscalerUpscaleForbiddenWindow is a period after which next upscale allowed.
	GeneralPodAutoscalerUpscaleForbiddenWindow metav1.Duration
	// generalPodAutoscalerDownscaleForbiddenWindow is a period after which next downscale allowed.
	GeneralPodAutoscalerDownscaleForbiddenWindow metav1.Duration
	// GeneralPodAutoscalerDowncaleStabilizationWindow is a period for which autoscaler will look
	// backwards and not scale down below any recommendation it made during that period.
	GeneralPodAutoscalerDownscaleStabilizationWindow metav1.Duration
	// generalPodAutoscalerTolerance is the tolerance for when
	// resource usage suggests upscaling/downscaling
	GeneralPodAutoscalerTolerance float64
	// GeneralPodAutoscalerUseRESTClients causes the GPA controller to use REST clients
	// through the kube-aggregator when enabled, instead of using the legacy metrics client
	// through the API server proxy.
	GeneralPodAutoscalerUseRESTClients bool
	// GeneralPodAutoscalerCPUInitializationPeriod is the period after pod start when CPU samples
	// might be skipped.
	GeneralPodAutoscalerCPUInitializationPeriod metav1.Duration
	// GeneralPodAutoscalerInitialReadinessDelay is period after pod start during which readiness
	// changes are treated as readiness being set for the first time. The only effect of this is that
	// GPA will disregard CPU samples from unready pods that had last readiness change during that
	// period.
	GeneralPodAutoscalerInitialReadinessDelay metav1.Duration
}

GPAControllerConfiguration contains elements describing GPAController.

func (*GPAControllerConfiguration) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GPAControllerConfiguration.

func (*GPAControllerConfiguration) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GPAControllerConfiguration) DeepCopyObject

func (in *GPAControllerConfiguration) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

Jump to

Keyboard shortcuts

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