v1

package
v0.0.0-...-f831509 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the podmig v1 API group +kubebuilder:object:generate=true +groupName=podmig.schrej.net

Index

Constants

View Source
const (
	StateCreating         = "Creating"
	StateRunning          = "Running"
	StateMigrationPending = "MigrationPending"
	StateMigrating        = "Migrating"
	StateInvalid          = "Invalid"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "podmig.schrej.net", Version: "v1"}

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

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

	Spec   MigratingPodSpec   `json:"spec,omitempty"`
	Status MigratingPodStatus `json:"status,omitempty"`
}

MigratingPod is the Schema for the migratingpods API +kubebuilder:object:root=true

func (*MigratingPod) DeepCopy

func (in *MigratingPod) DeepCopy() *MigratingPod

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

func (*MigratingPod) DeepCopyInto

func (in *MigratingPod) DeepCopyInto(out *MigratingPod)

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

func (*MigratingPod) DeepCopyObject

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

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

func (*MigratingPod) Hub

func (*MigratingPod) Hub()

Hub marks this type as a conversion hub

type MigratingPodList

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

MigratingPodList contains a list of MigratingPod +kubebuilder:object:root=true

func (*MigratingPodList) DeepCopy

func (in *MigratingPodList) DeepCopy() *MigratingPodList

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

func (*MigratingPodList) DeepCopyInto

func (in *MigratingPodList) DeepCopyInto(out *MigratingPodList)

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

func (*MigratingPodList) DeepCopyObject

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

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

type MigratingPodSpec

type MigratingPodSpec struct {
	// Template describes the pods that will be created.
	// +kubebuilder:validation:Required
	Template corev1.PodTemplateSpec `json:"template"`
}

MigratingPodSpec defines the desired state of MigratingPod

func (*MigratingPodSpec) DeepCopy

func (in *MigratingPodSpec) DeepCopy() *MigratingPodSpec

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

func (*MigratingPodSpec) DeepCopyInto

func (in *MigratingPodSpec) DeepCopyInto(out *MigratingPodSpec)

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

type MigratingPodStatus

type MigratingPodStatus struct {
	// State indicates the state of the MigratingPod
	// +kubebuilder
	State string `json:"state"`

	// ActivePod
	ActivePod string `json:"activePod"`
}

MigratingPodStatus defines the observed state of MigratingPod

func (*MigratingPodStatus) DeepCopy

func (in *MigratingPodStatus) DeepCopy() *MigratingPodStatus

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

func (*MigratingPodStatus) DeepCopyInto

func (in *MigratingPodStatus) DeepCopyInto(out *MigratingPodStatus)

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