v1alpha1

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: peerpodvolume.GroupName, Version: peerpodvolume.Version}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type PeerpodVolume

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

	Spec   PeerpodVolumeSpec   `json:"spec"`
	Status PeerpodVolumeStatus `json:"status,omitempty"`
}

PeerpodVolume is a specification for a PeerpodVolume resource

func (*PeerpodVolume) DeepCopy

func (in *PeerpodVolume) DeepCopy() *PeerpodVolume

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

func (*PeerpodVolume) DeepCopyInto

func (in *PeerpodVolume) DeepCopyInto(out *PeerpodVolume)

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

func (*PeerpodVolume) DeepCopyObject

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

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

type PeerpodVolumeList

type PeerpodVolumeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []PeerpodVolume `json:"items"`
}

PeerpodVolumeList is a list of PeerpodVolume resources

func (*PeerpodVolumeList) DeepCopy

func (in *PeerpodVolumeList) DeepCopy() *PeerpodVolumeList

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

func (*PeerpodVolumeList) DeepCopyInto

func (in *PeerpodVolumeList) DeepCopyInto(out *PeerpodVolumeList)

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

func (*PeerpodVolumeList) DeepCopyObject

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

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

type PeerpodVolumeSpec

type PeerpodVolumeSpec struct {
	PodName                           string `json:"podName"`
	PodNamespace                      string `json:"podNamespace"`
	PodUid                            string `json:"podUid"`
	NodeID                            string `json:"nodeID"`
	NodeName                          string `json:"nodeName"`
	VolumeID                          string `json:"volumeID"`
	VolumeName                        string `json:"volumeName"`
	VMID                              string `json:"vmID"`
	VMName                            string `json:"vmName"`
	DevicePath                        string `json:"devicePath"`
	StagingTargetPath                 string `json:"stagingTargetPath"`
	TargetPath                        string `json:"targetPath"`
	WrapperControllerPublishVolumeReq string `json:"wrapperControllerPublishVolumeReq"`
	WrapperControllerPublishVolumeRes string `json:"wrapperControllerPublishVolumeRes"`
	WrapperNodeStageVolumeReq         string `json:"wrapperNodeStageVolumeReq"`
	WrapperNodePublishVolumeReq       string `json:"wrapperNodePublishVolumeReq"`
	WrapperNodeUnpublishVolumeReq     string `json:"wrapperNodeUnpublishVolumeReq"`
	WrapperNodeUnstageVolumeReq       string `json:"wrapperNodeUnstageVolumeReq"`
}

PeerpodVolumeSpec is the spec for a PeerpodVolume resource

func (*PeerpodVolumeSpec) DeepCopy

func (in *PeerpodVolumeSpec) DeepCopy() *PeerpodVolumeSpec

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

func (*PeerpodVolumeSpec) DeepCopyInto

func (in *PeerpodVolumeSpec) DeepCopyInto(out *PeerpodVolumeSpec)

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

type PeerpodVolumeState

type PeerpodVolumeState string
const (
	// CSI-requests be cached to crd
	ControllerPublishVolumeCached PeerpodVolumeState = "controllerPublishVolumeCached"
	NodeStageVolumeCached         PeerpodVolumeState = "nodeStageVolumeCached"
	NodePublishVolumeCached       PeerpodVolumeState = "nodePublishVolumeCached"
	NodeUnpublishVolumeCached     PeerpodVolumeState = "nodeUnpublishVolumeCached"
	NodeUnstageVolumeCached       PeerpodVolumeState = "nodeUnstageVolumeCached"
	// The VSI instance id MUST be set when update the status to `peerPodVSIIDReady`
	PeerPodVSIIDReady PeerpodVolumeState = "peerPodVSIIDReady"
	// We can get the VSI instance from cloud-api-adaptor podVMInfoService when update the status to `peerPodVSIRunning`
	PeerPodVSIRunning PeerpodVolumeState = "peerPodVSIRunning"
	// The cached ControllerPublishVolume, NodeStageVolume, NodePublishVolume will be reproduced with replace peer-pod instance-id
	// before peer-pod container is created
	ControllerPublishVolumeApplied PeerpodVolumeState = "controllerPublishVolumeApplied"
	NodeStageVolumeApplied         PeerpodVolumeState = "nodeStageVolumeApplied"
	NodePublishVolumeApplied       PeerpodVolumeState = "nodePublishVolumeApplied"
	// csi-wrapper plugins will call original csi-driver to release volumes when peer-pod be deleted
	NodeUnpublishVolumeApplied       PeerpodVolumeState = "nodeUnpublishVolumeApplied"
	NodeUnstageVolumeApplied         PeerpodVolumeState = "nodeUnstageVolumeApplied"
	ControllerUnpublishVolumeApplied PeerpodVolumeState = "controllerUnpublishVolumeApplied"
)

type PeerpodVolumeStatus

type PeerpodVolumeStatus struct {
	State PeerpodVolumeState `json:"state"`
}

PeerpodVolumeStatus is the status for a PeerpodVolume resource

func (*PeerpodVolumeStatus) DeepCopy

func (in *PeerpodVolumeStatus) DeepCopy() *PeerpodVolumeStatus

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

func (*PeerpodVolumeStatus) DeepCopyInto

func (in *PeerpodVolumeStatus) DeepCopyInto(out *PeerpodVolumeStatus)

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