v1beta1

package
v0.0.0-...-2a08e8c Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the confighpas v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/iyacontrol/cronhpa/pkg/apis/cronhpa +k8s:defaulter-gen=TypeMeta +groupName=cronhpa.shareit.me

Package v1beta1 contains API Schema definitions for the confighpas v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/iyacontrol/cronhpa/pkg/apis/cronhpa +k8s:defaulter-gen=TypeMeta +groupName=cronhpa.shareit.me

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "cronhpa.shareit.me", Version: "v1beta1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

This section is empty.

Types

type Cron

type Cron struct {
	// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
	Schedule string `json:"schedule" protobuf:"bytes,1,opt,name=schedule"`

	TargetReplicas int32 `json:"targetReplicas" protobuf:"varint,2,opt,name=targetReplicas"`
}

func (*Cron) DeepCopy

func (in *Cron) DeepCopy() *Cron

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

func (*Cron) DeepCopyInto

func (in *Cron) DeepCopyInto(out *Cron)

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

type CronHPA

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

	// Spec defines the desired identities of pods in this cronhpa.
	Spec CronHPASpec `json:"spec,omitempty"`

	// Status is the current status of pods in this CronHPA. This data
	// may be out of date by some window of time.
	Status CronHPAStatus `json:"status,omitempty"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object CronHPA represents a set of crontabs to set target's replicas.

func (*CronHPA) DeepCopy

func (in *CronHPA) DeepCopy() *CronHPA

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

func (*CronHPA) DeepCopyInto

func (in *CronHPA) DeepCopyInto(out *CronHPA)

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

func (*CronHPA) DeepCopyObject

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

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

type CronHPAList

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

CronHPAList is a collection of CronHPA.

func (*CronHPAList) DeepCopy

func (in *CronHPAList) DeepCopy() *CronHPAList

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

func (*CronHPAList) DeepCopyInto

func (in *CronHPAList) DeepCopyInto(out *CronHPAList)

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

func (*CronHPAList) DeepCopyObject

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

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

type CronHPASpec

type CronHPASpec struct {
	// scaleTargetRef points to the target resource to scale
	ScaleTargetRef CrossVersionObjectReference `json:"scaleTargetRef" protobuf:"bytes,1,opt,name=scaleTargetRef"`

	Crons []Cron `json:"crons" protobuf:"bytes,2,opt,name=crons"`
}

A CronHPASpec is the specification of a CronHPA.

func (*CronHPASpec) DeepCopy

func (in *CronHPASpec) DeepCopy() *CronHPASpec

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

func (*CronHPASpec) DeepCopyInto

func (in *CronHPASpec) DeepCopyInto(out *CronHPASpec)

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

type CronHPAStatus

type CronHPAStatus struct {
	// Information when was the last time the schedule was successfully scheduled.
	// +optional
	LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty" protobuf:"bytes,2,opt,name=lastScheduleTime"`
}

CronHPAStatus represents the current state of a CronHPA.

func (*CronHPAStatus) DeepCopy

func (in *CronHPAStatus) DeepCopy() *CronHPAStatus

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

func (*CronHPAStatus) DeepCopyInto

func (in *CronHPAStatus) DeepCopyInto(out *CronHPAStatus)

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

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