v1alpha1

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the inmemory v1alpha1 API group +kubebuilder:object:generate=true +groupName=virtual.cluster.x-k8s.io

Index

Constants

View Source
const (
	// EtcdClusterIDAnnotationName defines the name of the annotation applied to in memory etcd
	// pods to track the cluster ID of the etcd member each pod represent.
	EtcdClusterIDAnnotationName = "etcd.inmemory.infrastructure.cluster.x-k8s.io/cluster-id"

	// EtcdMemberIDAnnotationName defines the name of the annotation applied to in memory etcd
	// pods to track the member ID of the etcd member each pod represent.
	EtcdMemberIDAnnotationName = "etcd.inmemory.infrastructure.cluster.x-k8s.io/member-id"

	// EtcdLeaderFromAnnotationName defines the name of the annotation applied to in memory etcd
	// pods to track leadership status of the etcd member each pod represent.
	// Note: We are tracking the time from an etcd member is leader; if more than one pod has this
	// annotation, the last etcd member that became leader is the current leader.
	// By using this mechanism leadership can be forwarded to another pod with an atomic operation
	// (add/update of the annotation to the pod/etcd member we are forwarding leadership to).
	EtcdLeaderFromAnnotationName = "etcd.inmemory.infrastructure.cluster.x-k8s.io/leader-from"

	// EtcdMemberRemoved is added to etcd pods which have been removed from the etcd cluster.
	EtcdMemberRemoved = "etcd.inmemory.infrastructure.cluster.x-k8s.io/member-removed"
)

defines annotations to be applied to in memory etcd pods in order to track etcd cluster info belonging to the etcd member each pod represent.

View Source
const CloudMachineKind = "CloudMachine"

CloudMachineKind is the kind of CloudMachine.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "virtual.cluster.x-k8s.io", 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 CloudMachine

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

	Spec   CloudMachineSpec   `json:"spec,omitempty"`
	Status CloudMachineStatus `json:"status,omitempty"`
}

CloudMachine represents a machine in memory.

func (*CloudMachine) DeepCopy

func (in *CloudMachine) DeepCopy() *CloudMachine

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

func (*CloudMachine) DeepCopyInto

func (in *CloudMachine) DeepCopyInto(out *CloudMachine)

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

func (*CloudMachine) DeepCopyObject

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

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

type CloudMachineList

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

CloudMachineList contains a list of CloudMachine.

func (*CloudMachineList) DeepCopy

func (in *CloudMachineList) DeepCopy() *CloudMachineList

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

func (*CloudMachineList) DeepCopyInto

func (in *CloudMachineList) DeepCopyInto(out *CloudMachineList)

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

func (*CloudMachineList) DeepCopyObject

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

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

type CloudMachineSpec

type CloudMachineSpec struct {
}

CloudMachineSpec is the spec of CloudMachine.

func (*CloudMachineSpec) DeepCopy

func (in *CloudMachineSpec) DeepCopy() *CloudMachineSpec

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

func (*CloudMachineSpec) DeepCopyInto

func (in *CloudMachineSpec) DeepCopyInto(out *CloudMachineSpec)

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

type CloudMachineStatus

type CloudMachineStatus struct {
}

CloudMachineStatus is the status of CloudMachine.

func (*CloudMachineStatus) DeepCopy

func (in *CloudMachineStatus) DeepCopy() *CloudMachineStatus

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

func (*CloudMachineStatus) DeepCopyInto

func (in *CloudMachineStatus) DeepCopyInto(out *CloudMachineStatus)

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