v1beta1

package
v0.0.0-...-ce76a93 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 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=k8s.io/canary-controller/pkg/apis/canaria +k8s:defaulter-gen=TypeMeta +groupName=canaria.shareit.com

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/canaria-controller/pkg/apis/canaria +k8s:defaulter-gen=TypeMeta +groupName=canaria.shareit.com

Index

Constants

View Source
const (
	K8sDeployStageCanary = iota
	K8sDeployStageRollBack
	K8sDeployStageRollup
)

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "canaria.shareit.com", 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 Canaria

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

	// Spec defines the desired identities of pods in this cronhpa.
	Spec CanariaSpec `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 CanariaStatus `json:"status,omitempty"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Canaria represents canaria for k8s deployment.

func (*Canaria) DeepCopy

func (in *Canaria) DeepCopy() *Canaria

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

func (*Canaria) DeepCopyInto

func (in *Canaria) DeepCopyInto(out *Canaria)

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

func (*Canaria) DeepCopyObject

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

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

type CanariaList

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

CanariaList is a collection of Canaria.

func (*CanariaList) DeepCopy

func (in *CanariaList) DeepCopy() *CanariaList

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

func (*CanariaList) DeepCopyInto

func (in *CanariaList) DeepCopyInto(out *CanariaList)

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

func (*CanariaList) DeepCopyObject

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

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

type CanariaSpec

type CanariaSpec struct {
	TargetSize int32             `json:"targetSize" protobuf:"bytes,1,opt,name=targetSize"`
	Images     map[string]string `json:"images" protobuf:"bytes,2,opt,name=images"`
	Stage      int32             `json:"stage" protobuf:"bytes,2,opt,name=stage"`
}

A CanariaSpec is the specification of a Canaria.

func (*CanariaSpec) DeepCopy

func (in *CanariaSpec) DeepCopy() *CanariaSpec

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

func (*CanariaSpec) DeepCopyInto

func (in *CanariaSpec) DeepCopyInto(out *CanariaSpec)

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

type CanariaStatus

type CanariaStatus struct {
	// Information when was the last time the schedule was successfully scheduled.
	// +optional
	LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty" protobuf:"bytes,1,opt,name=lastUpdateTime"`
}

CanariaStatus represents the current state of a Canaria.

func (*CanariaStatus) DeepCopy

func (in *CanariaStatus) DeepCopy() *CanariaStatus

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

func (*CanariaStatus) DeepCopyInto

func (in *CanariaStatus) DeepCopyInto(out *CanariaStatus)

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