v1alpha1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=devops-engineer.com.cn

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "devops-engineer.com.cn", Version: "v1alpha1"}

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type DeploymentRef

type DeploymentRef struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

func (*DeploymentRef) DeepCopy

func (in *DeploymentRef) DeepCopy() *DeploymentRef

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

func (*DeploymentRef) DeepCopyInto

func (in *DeploymentRef) DeepCopyInto(out *DeploymentRef)

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

type UpGrade

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

	Spec   UpGradeSpec   `json:"spec,omitempty"`
	Status UpGradeStatus `json:"status,omitempty"`
}

UpGrade is the Schema for the upgrades API

func (*UpGrade) DeepCopy

func (in *UpGrade) DeepCopy() *UpGrade

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

func (*UpGrade) DeepCopyInto

func (in *UpGrade) DeepCopyInto(out *UpGrade)

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

func (*UpGrade) DeepCopyObject

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

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

type UpGradeList

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

UpGradeList contains a list of UpGrade

func (*UpGradeList) DeepCopy

func (in *UpGradeList) DeepCopy() *UpGradeList

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

func (*UpGradeList) DeepCopyInto

func (in *UpGradeList) DeepCopyInto(out *UpGradeList)

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

func (*UpGradeList) DeepCopyObject

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

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

type UpGradeSpec

type UpGradeSpec struct {
	Type            string        `json:"type"`
	DeploymentRef   DeploymentRef `json:"deploymentRef"`
	UpgradeReplicas int           `json:"upgradeReplicas"`
	Images          []images      `json:"images"`
}

UpGradeSpec defines the desired state of UpGrade

func (*UpGradeSpec) DeepCopy

func (in *UpGradeSpec) DeepCopy() *UpGradeSpec

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

func (*UpGradeSpec) DeepCopyInto

func (in *UpGradeSpec) DeepCopyInto(out *UpGradeSpec)

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

type UpGradeStatus

type UpGradeStatus struct {
	// Type 类型主要是 upgrade
	Type string `json:"type"`
	// Status 状态
	Status string `json:"status"`
	// UpGradeReplicas 升级的副本数
	UpGradeReplicas int `json:"upgradeReplicas"`
}

UpGradeStatus defines the observed state of UpGrade

func (*UpGradeStatus) DeepCopy

func (in *UpGradeStatus) DeepCopy() *UpGradeStatus

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

func (*UpGradeStatus) DeepCopyInto

func (in *UpGradeStatus) DeepCopyInto(out *UpGradeStatus)

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