v1

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

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

Go to latest
Published: Nov 8, 2022 License: MIT 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.dcn.ssu.ac.kr

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "podmig.dcn.ssu.ac.kr", 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 Podmigration

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

	Spec   PodmigrationSpec   `json:"spec,omitempty"`
	Status PodmigrationStatus `json:"status,omitempty"`
}

Podmigration is the Schema for the podmigrations API

func (*Podmigration) DeepCopy

func (in *Podmigration) DeepCopy() *Podmigration

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

func (*Podmigration) DeepCopyInto

func (in *Podmigration) DeepCopyInto(out *Podmigration)

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

func (*Podmigration) DeepCopyObject

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

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

type PodmigrationList

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

PodmigrationList contains a list of Podmigration

func (*PodmigrationList) DeepCopy

func (in *PodmigrationList) DeepCopy() *PodmigrationList

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

func (*PodmigrationList) DeepCopyInto

func (in *PodmigrationList) DeepCopyInto(out *PodmigrationList)

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

func (*PodmigrationList) DeepCopyObject

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

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

type PodmigrationSpec

type PodmigrationSpec struct {

	// Number of desired pods. This is a pointer to distinguish between explicit
	// zero and not specified. Defaults to 1.
	// +optional
	Replicas     int    `json:"replicas,omitempty"`
	SourcePod    string `json:"sourcePod,omitempty"`
	DestHost     string `json:"destHost,omitempty"`
	SnapshotPath string `json:"snapshotPath,omitempty"`

	// Label selector for pods. Existing ReplicaSets whose pods are
	// selected by this will be the ones affected by this deployment.
	// It must match the pod template's labels.
	Selector *metav1.LabelSelector  `json:"selector"`
	Template corev1.PodTemplateSpec `json:"template,omitempty"`

	// Template describes the pods that will be created.
	// +kubebuilder:validation:Required
	Action string `json:"action"`
}

PodmigrationSpec defines the desired state of Podmigration

func (*PodmigrationSpec) DeepCopy

func (in *PodmigrationSpec) DeepCopy() *PodmigrationSpec

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

func (*PodmigrationSpec) DeepCopyInto

func (in *PodmigrationSpec) DeepCopyInto(out *PodmigrationSpec)

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

type PodmigrationStatus

type PodmigrationStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	// State indicates the state of the MigratingPod
	State string `json:"state"`

	// CurrentRevision indicates the version of the MigratingPod to generate the current Pod
	CurrentRevision string `json:"currentRevision"`

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

PodmigrationStatus defines the observed state of Podmigration

func (*PodmigrationStatus) DeepCopy

func (in *PodmigrationStatus) DeepCopy() *PodmigrationStatus

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

func (*PodmigrationStatus) DeepCopyInto

func (in *PodmigrationStatus) DeepCopyInto(out *PodmigrationStatus)

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