v1beta1

package
v0.7.7 Latest Latest
Warning

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

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

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=harvesterhci.io

+k8s:deepcopy-gen=package +groupName=harvesterhci.io

+k8s:deepcopy-gen=package +groupName=harvesterhci.io

Index

Constants

View Source
const (
	// VGStatusActive means the volume group is active
	VGStatusActive VGStatus = "Active"
	// VGStatusInactive means the volume group is inactive
	VGStatusInactive VGStatus = "Inactive"
	// VGStatusUnknown means the volume group is unknown
	VGStatusUnknown VGStatus = "Unknown"

	// VGStateEnabled means the volume group is enabled
	VGStateEnabled VGDesireState = "Enabled"
	// VGStateDisabled means the volume group is disabled
	VGStateDisabled VGDesireState = "Disabled"
	// VGStateReconciling means the volume group is reconciling
	VGStateReconciling VGDesireState = "Reconciling"

	// VGConditionReady means the volume group is ready
	VGConditionReady ConditionType = "Ready"
	// VGConditionAddDevice means the volume group is added a device
	VGConditionAddDevice ConditionType = "AddDevice"

	// ConditionTypeActive indicates the volume group is active
	ConditionTypeActive ConditionType = "Active"
	// ConditionTypeInactive indicates the volume group is inactive
	ConditionTypeInactive ConditionType = "Inactive"
	// ConditionTypeReconciling indicates the new device is added to the volume group
	ConditionTypeDeviceAdded ConditionType = "DeviceAdded"
	// ConditionTypeEndpointChanged indicates the device is removed from the volume group
	ConditionTypeDeviceRemoved ConditionType = "DeviceRemoved"

	// VGTypeStripe indicates the volume group is stripe
	VGTypeStripe VGType = "stripe"
	// VGTypeDMThin indicates the volume group is dm-thin
	VGTypeDMThin VGType = "dm-thin"
)

Variables

View Source
var (
	DeviceMounted    condition.Cond = "Mounted"
	DeviceFormatting condition.Cond = "Formatting"
	DiskAddedToNode  condition.Cond = "AddedToNode"
)
View Source
var (
	BlockDeviceResourceName    = "blockdevices"
	LVMVolumeGroupResourceName = "lvmvolumegroups"
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: harvesterhci.GroupName, Version: "v1beta1"}

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 BlockDevice

type BlockDevice struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              BlockDeviceSpec   `json:"spec"`
	Status            BlockDeviceStatus `json:"status"`
}

func NewBlockDevice

func NewBlockDevice(namespace, name string, obj BlockDevice) *BlockDevice

func (*BlockDevice) DeepCopy

func (in *BlockDevice) DeepCopy() *BlockDevice

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

func (*BlockDevice) DeepCopyInto

func (in *BlockDevice) DeepCopyInto(out *BlockDevice)

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

func (*BlockDevice) DeepCopyObject

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

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

type BlockDeviceList

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

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

BlockDeviceList is a list of BlockDevice resources

func (*BlockDeviceList) DeepCopy

func (in *BlockDeviceList) DeepCopy() *BlockDeviceList

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

func (*BlockDeviceList) DeepCopyInto

func (in *BlockDeviceList) DeepCopyInto(out *BlockDeviceList)

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

func (*BlockDeviceList) DeepCopyObject

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

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

type BlockDeviceProvisionPhase added in v0.4.0

type BlockDeviceProvisionPhase string
const (
	// ProvisionPhaseProvisioned indicates the block device is in provision.
	ProvisionPhaseProvisioned BlockDeviceProvisionPhase = "Provisioned"
	// ProvisionPhaseUnprovisioning indicates the block device is being unprovisioned.
	ProvisionPhaseUnprovisioning BlockDeviceProvisionPhase = "Unprovisioning"
	// ProvisionPhaseUnprovisioned indicates the block device is not in provision.
	ProvisionPhaseUnprovisioned BlockDeviceProvisionPhase = "Unprovisioned"
)

type BlockDeviceSpec

type BlockDeviceSpec struct {
	// name of the node to which the block device is attached
	// +kubebuilder:validation:Required
	NodeName string `json:"nodeName"`

	// a string with the device path of the disk, e.g. "/dev/sda1"
	// +kubebuilder:validation:Required
	DevPath string `json:"devPath"`

	FileSystem *FilesystemInfo `json:"fileSystem"`

	// a string slice with device tag for provisioner, e.g. ["default", "small", "ssd"]
	Tags []string `json:"tags,omitempty"`

	Provisioner *ProvisionerInfo `json:"provisioner,omitempty"`

	// a bool for the device to be provisioned
	// +kubebuilder:default:=false
	Provision bool `json:"provision,omitempty"`
}

func (*BlockDeviceSpec) DeepCopy

func (in *BlockDeviceSpec) DeepCopy() *BlockDeviceSpec

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

func (*BlockDeviceSpec) DeepCopyInto

func (in *BlockDeviceSpec) DeepCopyInto(out *BlockDeviceSpec)

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

type BlockDeviceState

type BlockDeviceState string
const (
	// BlockDeviceActive is the state for a block device that is connected to the node
	BlockDeviceActive BlockDeviceState = "Active"

	// BlockDeviceInactive is the state for a block device that is disconnected from a node
	BlockDeviceInactive BlockDeviceState = "Inactive"

	// BlockDeviceUnknown is the state for a block device that cannot be determined at this time
	BlockDeviceUnknown BlockDeviceState = "Unknown"
)

type BlockDeviceStatus

type BlockDeviceStatus struct {
	// the current state of the block device, options are "Active", "Inactive", or "Unknown"
	// +kubebuilder:validation:Enum:=Active;Inactive;Unknown
	State BlockDeviceState `json:"state"`

	// The current phase of the block device being provisioned.
	// +kubebuilder:validation:Enum:=Provisioned;Unprovisioned;Unprovisioning
	// +kubebuilder:default:=Unprovisioned
	ProvisionPhase BlockDeviceProvisionPhase `json:"provisionPhase"`

	// +optional
	Conditions []Condition `json:"conditions,omitempty"`

	// +optional
	DeviceStatus DeviceStatus `json:"deviceStatus,omitempty"`

	// The current Tags of the blockdevice
	Tags []string `json:"tags,omitempty"`
}

func (*BlockDeviceStatus) DeepCopy

func (in *BlockDeviceStatus) DeepCopy() *BlockDeviceStatus

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

func (*BlockDeviceStatus) DeepCopyInto

func (in *BlockDeviceStatus) DeepCopyInto(out *BlockDeviceStatus)

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

type BlockDeviceType

type BlockDeviceType string
const (
	// DeviceTypeDisk indicates the device type is disk
	DeviceTypeDisk BlockDeviceType = "disk"

	// DeviceTypePart indicates the device type is partition
	DeviceTypePart BlockDeviceType = "part"
)

type Condition

type Condition struct {
	// Type of the condition.
	Type condition.Cond `json:"type"`

	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status"`

	// The last time this condition was updated.
	LastUpdateTime string `json:"lastUpdateTime,omitempty"`

	// Last time the condition transitioned from one status to another.
	LastTransitionTime string `json:"lastTransitionTime,omitempty"`

	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`

	// Human-readable message indicating details about last transition
	Message string `json:"message,omitempty"`
}

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type ConditionType added in v0.7.2

type ConditionType string

type DeviceCapcity

type DeviceCapcity struct {
	// the amount of storage the disk provides
	SizeBytes uint64 `json:"sizeBytes"`

	// the size of the physical blocks used on the disk, in bytes
	PhysicalBlockSizeBytes uint64 `json:"physicalBlockSizeBytes"`
}

func (*DeviceCapcity) DeepCopy

func (in *DeviceCapcity) DeepCopy() *DeviceCapcity

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

func (*DeviceCapcity) DeepCopyInto

func (in *DeviceCapcity) DeepCopyInto(out *DeviceCapcity)

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

type DeviceDetails

type DeviceDetails struct {
	// a string represents the type of the device, options are "disk", "part"
	// +kubebuilder:validation:Enum:=disk;part
	DeviceType BlockDeviceType `json:"deviceType"`

	// a string represents the type of drive bus, options are "HDD", "FDD", "ODD", or "SSD",
	// which correspond to a hard disk drive (rotational), floppy drive, optical (CD/DVD) drive and solid-state drive
	// +kubebuilder:validation:Enum:=HDD;FDD;ODD;SSD;Unknown
	DriveType string `json:"driveType"`

	// PartUUID is a partition-table-level UUID for the partition, a standard feature for all partitions on GPT-partitioned disks
	PartUUID string `json:"partUUID,omitempty"`

	// UUID is a filesystem-level UUID, which is retrieved from the filesystem metadata inside the partition
	// This would be volume UUID on macOS, PartUUID on linux, empty on Windows
	UUID string `json:"uuid,omitempty"`

	// PtUUID is the UUID of the partition table itself, a unique identifier for the entire disk assigned at the time the disk was partitioned
	PtUUID string `json:"ptUUID,omitempty"`

	// contains a boolean indicating if the disk drive is removable
	IsRemovable bool `json:"isRemovable,omitempty"`

	// the type of storage controller/drive, options are "SCSI", "IDE", "virtio", "MMC", or "NVMe"
	// +kubebuilder:validation:Enum:=SCSI;IDE;virtio;MMC;NVMe;Unknown
	StorageController string `json:"storageController"`

	// a string represents the block device bus path
	BusPath string `json:"busPath,omitempty"`

	// a string with the vendor-assigned disk model name
	Model string `json:"model,omitempty"`

	// a string with the name of the hardware vendor for the disk drive
	Vendor string `json:"vendor,omitempty"`

	// a string with the disk's serial number
	SerialNumber string `json:"serialNumber,omitempty"`

	// the numeric index of the NUMA node this disk is local to, or -1
	NUMANodeID int `json:"numaNodeID,omitempty"`

	// a string with the disk's World Wide Name(WWN)
	WWN string `json:"wwn,omitempty"`

	// a string containing the disk label
	Label string `json:"label,omitempty"`
}

func (*DeviceDetails) DeepCopy

func (in *DeviceDetails) DeepCopy() *DeviceDetails

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

func (*DeviceDetails) DeepCopyInto

func (in *DeviceDetails) DeepCopyInto(out *DeviceDetails)

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

type DeviceStatus

type DeviceStatus struct {
	// a string with the parent device path of the disk, e.g. "/dev/sda"
	// e.g `/dev/sda` is the parent for `/dev/sda1`
	ParentDevice string `json:"parentDevice,omitempty"`

	// a bool indicating if the disk is partitioned
	Partitioned bool `json:"partitioned"`

	// a object describe the disk capacity
	Capacity DeviceCapcity `json:"capacity"`

	// a object describe the disk details
	Details DeviceDetails `json:"details"`

	// device path
	DevPath string `json:"devPath"`

	FileSystem *FilesystemStatus `json:"fileSystem"`
}

func (*DeviceStatus) DeepCopy

func (in *DeviceStatus) DeepCopy() *DeviceStatus

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

func (*DeviceStatus) DeepCopyInto

func (in *DeviceStatus) DeepCopyInto(out *DeviceStatus)

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

type DriveType

type DriveType string
const (
	// DriveTypeHDD is the type of drive, which correspond to a hard disk drive (rotational)
	DriveTypeHDD DriveType = "HDD"
	// DriveTypeFDD is the type of drive, which correspond to floppy drive
	DriveTypeFDD DriveType = "FDD"
	// DriveTypeODD is the type of drive, which correspond to  optical (CD/DVD) drive
	DriveTypeODD DriveType = "ODD"
	// DriveTypeSSD is the type of drive, which correspond to solid-state drive
	DriveTypeSSD DriveType = "SSD"
)

type FilesystemInfo

type FilesystemInfo struct {
	// DEPRECATED: no longer use and has no effect.
	// a string with the partition's mount point, or "" if no mount point was discovered
	MountPoint string `json:"mountPoint"`

	// a bool indicating the device is force formatted to overwrite the existing one
	ForceFormatted bool `json:"forceFormatted,omitempty"`

	// a bool indicating whether the filesystem can be provisioned as a disk for the node to store data.
	// Deprecated: Replaced by field `spec.provision`
	// +optional
	Provisioned bool `json:"provisioned,omitempty"`

	// a bool indicating whether the filesystem is manually repaired of not
	Repaired bool `json:"repaired,omitempty"`
}

func (*FilesystemInfo) DeepCopy

func (in *FilesystemInfo) DeepCopy() *FilesystemInfo

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

func (*FilesystemInfo) DeepCopyInto

func (in *FilesystemInfo) DeepCopyInto(out *FilesystemInfo)

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

type FilesystemStatus

type FilesystemStatus struct {
	// a bool indicating the partition is read-only
	IsReadOnly bool `json:"isReadOnly,omitempty"`

	// a string indicated the filesystem type for the partition, or "" if the system could not determine the type.
	Type string `json:"type"`

	// a string with the partition's mount point, or "" if no mount point was discovered
	MountPoint string `json:"mountPoint"`

	// the last force formatted timestamp, only exist when user operate device formatting through the CRD controller
	LastFormattedAt *metav1.Time `json:"LastFormattedAt,omitempty"`

	// indicating whether the filesystem is corrupted or not
	Corrupted bool `json:"corrupted,omitempty"`
}

func (*FilesystemStatus) DeepCopy

func (in *FilesystemStatus) DeepCopy() *FilesystemStatus

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

func (*FilesystemStatus) DeepCopyInto

func (in *FilesystemStatus) DeepCopyInto(out *FilesystemStatus)

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

type LVMProvisionerInfo added in v0.7.1

type LVMProvisionerInfo struct {
	// a string with the volume group name for the provisioner
	// +kubebuilder:validation:Required
	VgName string `json:"vgName"`

	// a string slice for the parameters
	// +kubebuilder:validation:Optional
	Parameters []string `json:"parameters,omitempty"`
}

func (*LVMProvisionerInfo) DeepCopy added in v0.7.1

func (in *LVMProvisionerInfo) DeepCopy() *LVMProvisionerInfo

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

func (*LVMProvisionerInfo) DeepCopyInto added in v0.7.1

func (in *LVMProvisionerInfo) DeepCopyInto(out *LVMProvisionerInfo)

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

type LVMVolumeGroup added in v0.7.2

type LVMVolumeGroup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              VolumeGroupSpec    `json:"spec"`
	Status            *VolumeGroupStatus `json:"status,omitempty"`
}

func NewLVMVolumeGroup added in v0.7.2

func NewLVMVolumeGroup(namespace, name string, obj LVMVolumeGroup) *LVMVolumeGroup

func (*LVMVolumeGroup) DeepCopy added in v0.7.2

func (in *LVMVolumeGroup) DeepCopy() *LVMVolumeGroup

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

func (*LVMVolumeGroup) DeepCopyInto added in v0.7.2

func (in *LVMVolumeGroup) DeepCopyInto(out *LVMVolumeGroup)

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

func (*LVMVolumeGroup) DeepCopyObject added in v0.7.2

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

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

type LVMVolumeGroupList added in v0.7.2

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

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

LVMVolumeGroupList is a list of LVMVolumeGroup resources

func (*LVMVolumeGroupList) DeepCopy added in v0.7.2

func (in *LVMVolumeGroupList) DeepCopy() *LVMVolumeGroupList

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

func (*LVMVolumeGroupList) DeepCopyInto added in v0.7.2

func (in *LVMVolumeGroupList) DeepCopyInto(out *LVMVolumeGroupList)

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

func (*LVMVolumeGroupList) DeepCopyObject added in v0.7.2

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

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

type LonghornProvisionerInfo added in v0.7.1

type LonghornProvisionerInfo struct {
	// a string with the engine version for the provisioner
	// +kubebuilder:validation:Enum:=LonghornV1;LonghornV2
	EngineVersion string `json:"engineVersion"`
	// specifies the driver to use for V2 data engine disks
	// +kubebuilder:validation:Enum="";auto;aio
	// +optional
	DiskDriver longhornv1.DiskDriver `json:"diskDriver,omitempty"`
}

func (*LonghornProvisionerInfo) DeepCopy added in v0.7.1

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

func (*LonghornProvisionerInfo) DeepCopyInto added in v0.7.1

func (in *LonghornProvisionerInfo) DeepCopyInto(out *LonghornProvisionerInfo)

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

type ProvisionerInfo added in v0.7.1

type ProvisionerInfo struct {

	// a provisioner for provision LVM volume backend disk
	// +optional
	LVM *LVMProvisionerInfo `json:"lvm,omitempty"`

	// a provisioner for provision Longhorn volume backend disk
	// +optional
	Longhorn *LonghornProvisionerInfo `json:"longhorn,omitempty"`
}

func (*ProvisionerInfo) DeepCopy added in v0.7.1

func (in *ProvisionerInfo) DeepCopy() *ProvisionerInfo

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

func (*ProvisionerInfo) DeepCopyInto added in v0.7.1

func (in *ProvisionerInfo) DeepCopyInto(out *ProvisionerInfo)

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

type StorageController

type StorageController string
const (
	// StorageControllerIDE is the type of storage controller, IDE stands for Integrated Drive Electronics
	StorageControllerIDE StorageController = "IDE"
	// StorageControllerSCSI is the type of storage controller, SCSI stands for Small Computer System Interface
	StorageControllerSCSI StorageController = "SCSI"
	// StorageControllerNVMe is the type of storage controller, NVMe stands for Non-Volatile Memory express
	StorageControllerNVMe StorageController = "NVMe"
	// StorageControllerVirtio is the type of storage controller, virtio is a virtualization standard for network and disk device drivers
	StorageControllerVirtio StorageController = "virtio"
	// StorageControllerMMC is the type of storage controller, MMC stands for Multi Media Card
	StorageControllerMMC StorageController = "MMC"
)

type VGDesireState added in v0.7.2

type VGDesireState string

type VGStatus added in v0.7.2

type VGStatus string

type VGType added in v0.7.2

type VGType string

type VolumeGroupCondition added in v0.7.2

type VolumeGroupCondition struct {
	Type               ConditionType          `json:"type"`
	Status             corev1.ConditionStatus `json:"status"`
	LastTransitionTime metav1.Time            `json:"lastTransitionTime"`
	Reason             string                 `json:"reason,omitempty"`
	Message            string                 `json:"message,omitempty"`
}

func (*VolumeGroupCondition) DeepCopy added in v0.7.2

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

func (*VolumeGroupCondition) DeepCopyInto added in v0.7.2

func (in *VolumeGroupCondition) DeepCopyInto(out *VolumeGroupCondition)

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

type VolumeGroupSpec added in v0.7.2

type VolumeGroupSpec struct {
	// VGName is the name of the volume group
	// +kubebuilder:validation:Required
	VgName string `json:"vgName"`

	// NodeName is the name of the node where the volume group is created
	// +kubebuilder:validation:Required
	NodeName string `json:"nodeName"`

	// DesiredState is the desired state of the volume group
	// enabled means we will keep this vg active, disabled means we will keep this vg inactive
	// +kubebuilder:validation:Enum:=Enabled;Disabled
	DesiredState VGDesireState `json:"desiredState"`

	// The devices of the volume group
	// format: map[<bd Name>]=devPath"
	// e.g. map[087fc9702c450bfca5ba56b06ba7d7f2] = /dev/sda
	// +kubebuilder:validation:Optional
	Devices map[string]string `json:"devices,omitempty"`

	// Parameters is the parameters for creating the volume group *optional*
	// +kubebuilder:validation:Optional
	Parameters string `json:"parameters,omitempty"`
}

func (*VolumeGroupSpec) DeepCopy added in v0.7.2

func (in *VolumeGroupSpec) DeepCopy() *VolumeGroupSpec

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

func (*VolumeGroupSpec) DeepCopyInto added in v0.7.2

func (in *VolumeGroupSpec) DeepCopyInto(out *VolumeGroupSpec)

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

type VolumeGroupStatus added in v0.7.2

type VolumeGroupStatus struct {

	// The conditions of the volume group
	// +kubebuilder:validation:Optional
	// +Kubebuilder:default={}
	VGConditions []VolumeGroupCondition `json:"conditions,omitempty"`

	// The devices of the volume group
	// format: map[<bd Name>]=devPath"
	// +kubebuilder:validation:Optional
	Devices map[string]string `json:"devices,omitempty"`

	// Parameters is the current parameters of the volume group
	// +kubebuilder:validation:Optional
	Parameters string `json:"parameters,omitempty"`

	// VGTargetType is the target type of the volume group, now only support stripe/dm-thin
	// +kubebuilder:validation:Eum:=stripe;dm-thin
	VGTargetType VGType `json:"vgTargetType,omitempty"`

	// The status of the volume group
	// +kubebuilder:validation:Enum:=Active;Inactive;Unknown
	// +kubebuilder:default:=Unknown
	Status VGStatus `json:"vgStatus,omitempty"`
}

func (*VolumeGroupStatus) DeepCopy added in v0.7.2

func (in *VolumeGroupStatus) DeepCopy() *VolumeGroupStatus

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

func (*VolumeGroupStatus) DeepCopyInto added in v0.7.2

func (in *VolumeGroupStatus) DeepCopyInto(out *VolumeGroupStatus)

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