v1alpha1

package
v3.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CnsRegisterVolume

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

	Spec   CnsRegisterVolumeSpec   `json:"spec,omitempty"`
	Status CnsRegisterVolumeStatus `json:"status,omitempty"`
}

CnsRegisterVolume is the Schema for the cnsregistervolumes API +k8s:openapi-gen=true +kubebuilder:subresource:status

func (*CnsRegisterVolume) DeepCopy

func (in *CnsRegisterVolume) DeepCopy() *CnsRegisterVolume

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

func (*CnsRegisterVolume) DeepCopyInto

func (in *CnsRegisterVolume) DeepCopyInto(out *CnsRegisterVolume)

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

func (*CnsRegisterVolume) DeepCopyObject

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

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

type CnsRegisterVolumeList

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

CnsRegisterVolumeList contains a list of CnsRegisterVolume

func (*CnsRegisterVolumeList) DeepCopy

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

func (*CnsRegisterVolumeList) DeepCopyInto

func (in *CnsRegisterVolumeList) DeepCopyInto(out *CnsRegisterVolumeList)

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

func (*CnsRegisterVolumeList) DeepCopyObject

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

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

type CnsRegisterVolumeSpec

type CnsRegisterVolumeSpec struct {
	// Name of the PVC
	PvcName string `json:"pvcName"`

	// VolumeID indicates an existing vsphere volume to be imported into Project
	// Pacific cluster.
	// If the AccessMode is "ReadWriteMany" or "ReadOnlyMany", then this VolumeID
	// can be either an existing FileShare (or) CNS file volume backed FileShare.
	// If the AccessMode is "ReadWriteOnce", then this VolumeID can be either an
	// existing FCD (or) a CNS backed FCD.
	// VolumeID and DiskUrlPath cannot be specified together.
	VolumeID string `json:"volumeID,omitempty"`

	// AccessMode contains the actual access mode the volume backing the
	// CnsRegisterVolume has.
	// AccessMode must be specified if VolumeID is specified.
	AccessMode v1.PersistentVolumeAccessMode `json:"accessMode,omitempty"`

	// DiskUrlPath is URL path to an existing block volume to be imported into
	// Project Pacific cluster.
	// VolumeID and DiskUrlPath cannot be specified together.
	// DiskUrlPath is explicitly used for block volumes. AccessMode need not be
	// specified and will be defaulted to "ReadWriteOnce".
	// This field must be in the following format:
	// Format:
	// https://<vc_ip>/folder/<vm_vmdk_path>?dcPath=<datacenterName>&dsName=<datastoreName>
	// Ex: https://10.192.255.221/folder/34a9c05d-5f03-e254-e692-02004479cb91/
	//        vm2_1.vmdk?dcPath=Datacenter-1&dsName=vsanDatastore
	// This is for a 34a9c05d-5f03-e254-e692-02004479cb91/vm2_1.vmdk
	// file under datacenter "Datacenter-1" and datastore "vsanDatastore".
	DiskURLPath string `json:"diskURLPath,omitempty"`
}

CnsRegisterVolumeSpec defines the desired state of CnsRegisterVolume +k8s:openapi-gen=true

func (*CnsRegisterVolumeSpec) DeepCopy

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

func (*CnsRegisterVolumeSpec) DeepCopyInto

func (in *CnsRegisterVolumeSpec) DeepCopyInto(out *CnsRegisterVolumeSpec)

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

type CnsRegisterVolumeStatus

type CnsRegisterVolumeStatus struct {
	// Indicates the volume is successfully registered.
	// This field must only be set by the entity completing the register
	// operation, i.e. the CNS Operator.
	Registered bool `json:"registered"`

	// The last error encountered during import operation, if any.
	// This field must only be set by the entity completing the import
	// operation, i.e. the CNS Operator.
	Error string `json:"error,omitempty"`
}

CnsRegisterVolumeStatus defines the observed state of CnsRegisterVolume +k8s:openapi-gen=true

func (*CnsRegisterVolumeStatus) DeepCopy

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

func (*CnsRegisterVolumeStatus) DeepCopyInto

func (in *CnsRegisterVolumeStatus) DeepCopyInto(out *CnsRegisterVolumeStatus)

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