Documentation
¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
Constants ¶
const (
GroupName = "k8s.practo.dev"
)
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: workerpodautoscaler.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 WorkerPodAutoScaler ¶
type WorkerPodAutoScaler struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec WorkerPodAutoScalerSpec `json:"spec"` Status WorkerPodAutoScalerStatus `json:"status"` }
WorkerPodAutoScaler is a specification for a WorkerPodAutoScaler resource
func (*WorkerPodAutoScaler) DeepCopy ¶
func (in *WorkerPodAutoScaler) DeepCopy() *WorkerPodAutoScaler
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkerPodAutoScaler.
func (*WorkerPodAutoScaler) DeepCopyInto ¶
func (in *WorkerPodAutoScaler) DeepCopyInto(out *WorkerPodAutoScaler)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkerPodAutoScaler) DeepCopyObject ¶
func (in *WorkerPodAutoScaler) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*WorkerPodAutoScaler) GetMaxDisruption ¶ added in v1.0.0
func (w *WorkerPodAutoScaler) GetMaxDisruption(defaultDisruption string) *string
type WorkerPodAutoScalerList ¶
type WorkerPodAutoScalerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []WorkerPodAutoScaler `json:"items"` }
WorkerPodAutoScalerList is a list of WorkerPodAutoScaler resources
func (*WorkerPodAutoScalerList) DeepCopy ¶
func (in *WorkerPodAutoScalerList) DeepCopy() *WorkerPodAutoScalerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkerPodAutoScalerList.
func (*WorkerPodAutoScalerList) DeepCopyInto ¶
func (in *WorkerPodAutoScalerList) DeepCopyInto(out *WorkerPodAutoScalerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkerPodAutoScalerList) DeepCopyObject ¶
func (in *WorkerPodAutoScalerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WorkerPodAutoScalerSpec ¶
type WorkerPodAutoScalerSpec struct { MinReplicas *int32 `json:"minReplicas"` MaxReplicas *int32 `json:"maxReplicas"` MaxDisruption *string `json:"maxDisruption"` QueueURI string `json:"queueURI"` DeploymentName string `json:"deploymentName"` ReplicaSetName string `json:"replicaSetName"` TargetMessagesPerWorker *int32 `json:"targetMessagesPerWorker"` SecondsToProcessOneJob *float64 `json:"secondsToProcessOneJob"` }
WorkerPodAutoScalerSpec is the spec for a WorkerPodAutoScaler resource
func (*WorkerPodAutoScalerSpec) DeepCopy ¶
func (in *WorkerPodAutoScalerSpec) DeepCopy() *WorkerPodAutoScalerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkerPodAutoScalerSpec.
func (*WorkerPodAutoScalerSpec) DeepCopyInto ¶
func (in *WorkerPodAutoScalerSpec) DeepCopyInto(out *WorkerPodAutoScalerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkerPodAutoScalerStatus ¶
type WorkerPodAutoScalerStatus struct { CurrentMessages int32 `json:"CurrentMessages"` CurrentReplicas int32 `json:"CurrentReplicas"` AvailableReplicas int32 `json:"AvailableReplicas"` DesiredReplicas int32 `json:"DesiredReplicas"` }
WorkerPodAutoScalerStatus is the status for a WorkerPodAutoScaler resource
func (*WorkerPodAutoScalerStatus) DeepCopy ¶
func (in *WorkerPodAutoScalerStatus) DeepCopy() *WorkerPodAutoScalerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkerPodAutoScalerStatus.
func (*WorkerPodAutoScalerStatus) DeepCopyInto ¶
func (in *WorkerPodAutoScalerStatus) DeepCopyInto(out *WorkerPodAutoScalerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.