v1beta1

package
v0.0.0-...-8958888 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1beta1 is the v1beta1 version of the API. +groupName=confighpa.shareit.com

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: confighpa.GroupName, Version: "v1beta1"}

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 ConfigHpa

type ConfigHpa struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ConfigHpaSpec   `json:"spec,omitempty"`
	Status ConfigHpaStatus `json:"status,omitempty"`
}

func (*ConfigHpa) DeepCopy

func (in *ConfigHpa) DeepCopy() *ConfigHpa

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

func (*ConfigHpa) DeepCopyInto

func (in *ConfigHpa) DeepCopyInto(out *ConfigHpa)

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

func (*ConfigHpa) DeepCopyObject

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

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

func (ConfigHpa) String

func (chpa ConfigHpa) String() string

type ConfigHpaList

type ConfigHpaList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ConfigHpa `json:"items"`
}

ConfigHpaList contains a list of ConfigHpa

func (*ConfigHpaList) DeepCopy

func (in *ConfigHpaList) DeepCopy() *ConfigHpaList

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

func (*ConfigHpaList) DeepCopyInto

func (in *ConfigHpaList) DeepCopyInto(out *ConfigHpaList)

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

func (*ConfigHpaList) DeepCopyObject

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

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

type ConfigHpaSpec

type ConfigHpaSpec struct {
	// part of HorizontalController, see comments in the k8s repo: pkg/controller/podautoscaler/horizontal.go
	DownscaleForbiddenWindowSeconds int32 `json:"downscaleForbiddenWindowSeconds,omitempty"`
	UpscaleForbiddenWindowSeconds   int32 `json:"upscaleForbiddenWindowSeconds,omitempty"`
	// See the comment about this parameter above
	ScaleUpLimitFactor float64 `json:"scaleUpLimitFactor,omitempty"`
	// See the comment about this parameter above
	ScaleDownLimitFactor float64 `json:"scaleDownLimitFactor,omitempty"`
	Tolerance            float64 `json:"tolerance,omitempty"`

	// part of HorizontalPodAutoscalerSpec, see comments in the k8s-1.10.8 repo: staging/src/k8s.io/api/autoscaling/v1/types.go
	// reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
	// and will set the desired number of pods by using its Scale subresource.
	ScaleTargetRef CrossVersionObjectReference `json:"scaleTargetRef"`
	// specifications that will be used to calculate the desired replica count
	Metrics     []autoscalingv2.MetricSpec `json:"metrics,omitempty"`
	MinReplicas *int32                     `json:"minReplicas,omitempty"`
	MaxReplicas int32                      `json:"maxReplicas"`
}

specification of horizontal pod autoscaler was copied from HorizontalPodAutoscalerSpec + HPAControllerConfiguration

func (*ConfigHpaSpec) DeepCopy

func (in *ConfigHpaSpec) DeepCopy() *ConfigHpaSpec

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

func (*ConfigHpaSpec) DeepCopyInto

func (in *ConfigHpaSpec) DeepCopyInto(out *ConfigHpaSpec)

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

func (ConfigHpaSpec) String

func (chpa_spec ConfigHpaSpec) String() string

type ConfigHpaStatus

type ConfigHpaStatus struct {
	ObservedGeneration *int64                                           `json:"observedGeneration,omitempty"`
	LastScaleTime      *metav1.Time                                     `json:"lastScaleTime,omitempty"`
	CurrentReplicas    int32                                            `json:"currentReplicas"`
	DesiredReplicas    int32                                            `json:"desiredReplicas"`
	CurrentMetrics     []autoscalingv2.MetricStatus                     `json:"currentMetrics"`
	Conditions         []autoscalingv2.HorizontalPodAutoscalerCondition `json:"conditions"`
}

ConfigHpaStatus defines the observed state of CHPA

func (*ConfigHpaStatus) DeepCopy

func (in *ConfigHpaStatus) DeepCopy() *ConfigHpaStatus

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

func (*ConfigHpaStatus) DeepCopyInto

func (in *ConfigHpaStatus) DeepCopyInto(out *ConfigHpaStatus)

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

func (ConfigHpaStatus) String

func (chpa_status ConfigHpaStatus) String() string

type CrossVersionObjectReference

type CrossVersionObjectReference struct {
	// Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds"
	Kind string `json:"kind"`
	// Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
	Name string `json:"name"`
	// API version of the referent
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`
}

CrossVersionObjectReference contains enough information to let you identify the referred resource.

func (*CrossVersionObjectReference) DeepCopy

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

func (*CrossVersionObjectReference) DeepCopyInto

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

Jump to

Keyboard shortcuts

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