v1

package
Version: v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 5

Documentation

Overview

Package v1 is the v1 version of the API.

Index

Constants

View Source
const (
	GroupName = "k8s.practo.dev"
)

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: workerpodautoscaler.GroupName, Version: "v1"}

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

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

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,omitempty"`
	QueueURI                string   `json:"queueURI"`
	DeploymentName          string   `json:"deploymentName,omitempty"`
	ReplicaSetName          string   `json:"replicaSetName,omitempty"`
	TargetMessagesPerWorker *int32   `json:"targetMessagesPerWorker"`
	SecondsToProcessOneJob  *float64 `json:"secondsToProcessOneJob,omitempty"`
}

WorkerPodAutoScalerSpec is the spec for a WorkerPodAutoScaler resource

func (*WorkerPodAutoScalerSpec) DeepCopy

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

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

func (*WorkerPodAutoScalerStatus) 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