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 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 ¶
func (in *GPAControllerConfiguration) DeepCopy() *GPAControllerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GPAControllerConfiguration.
func (*GPAControllerConfiguration) DeepCopyInto ¶
func (in *GPAControllerConfiguration) DeepCopyInto(out *GPAControllerConfiguration)
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.
Click to show internal directories.
Click to hide internal directories.