Documentation ¶
Index ¶
- Constants
- Variables
- func GetCapacityKeyPrefix() string
- func GetCapacityResource() corev1.ResourceName
- func GetDeviceClassKey() string
- func GetLVPendingDeletionKey() string
- func GetLogicalVolumeFinalizer() string
- func GetLvcreateOptionClassKey() string
- func GetNodeFinalizer() string
- func GetPluginName() string
- func GetResizeRequestedAtKey() string
- func GetTopologyNodeKey() string
- func UseLegacy() bool
Constants ¶
const CreatedbyLabelKey = "app.kubernetes.io/created-by"
Label key that indicates The controller/user who created this resource https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/#labels
const CreatedbyLabelValue = "topolvm-controller"
Label value that indicates The controller/user who created this resource
const DefaultCSISocket = "/run/topolvm/csi-topolvm.sock"
DefaultCSISocket is the default path of the CSI socket file.
const DefaultDeviceClassAnnotationName = "00default"
DefaultDeviceClassAnnotationName is the part of annotation name for the default device-class.
const DefaultDeviceClassName = ""
DefaultDeviceClassName is the name for the default device-class.
const DefaultLVMdSocket = "/run/topolvm/lvmd.sock"
DefaultLVMdSocket is the default path of the lvmd socket file.
const DefaultSize = int64(DefaultSizeGb << 30)
DefaultSize is DefaultSizeGb in bytes
const DefaultSizeGb = 1
DefaultSizeGb is the default size in GiB for volumes (PVC or generic ephemeral volumes) w/o capacity requests.
const DeviceDirectory = "/dev/topolvm"
DeviceDirectory is a directory where TopoLVM Node service creates device files.
const LegacyPVCFinalizer = legacyPluginName + "/pvc"
LegacyPVCFinalizer is a legacy finalizer of PVC.
const MinimumSectorSize = int64(4096)
MinimumSectorSize is the minimum size in bytes for volumes (PVC or generic ephemeral volumes). It is derived from the usual sector size of 512,1024 or 4096 bytes for logical volumes. While Sector Sizes of 512 are common, using 4096 is safe As it also aligns with 512 and 1024 byte sectors, and is the default for most modern disks. Going lower than this size will cause validation issues on volume creation for the user.
const PVCFinalizer = pluginName + "/pvc"
PVCFinalizer is a finalizer of PVC.
Variables ¶
var (
// Version is the topolvm version, this value will be injected on building.
Version = "devel"
)
Functions ¶
func GetCapacityKeyPrefix ¶ added in v0.16.0
func GetCapacityKeyPrefix() string
GetCapacityKeyPrefix returns the key prefix of Node annotation that represents VG free space.
func GetCapacityResource ¶ added in v0.16.0
func GetCapacityResource() corev1.ResourceName
GetCapacityResource returns the resource name of topolvm capacity.
func GetDeviceClassKey ¶ added in v0.16.0
func GetDeviceClassKey() string
GetDeviceClassKey returns the key used in CSI volume create requests to specify a device-class.
func GetLVPendingDeletionKey ¶ added in v0.20.0
func GetLVPendingDeletionKey() string
GetPendingDeletionKey returns the name of the pending-deletion annotation
func GetLogicalVolumeFinalizer ¶ added in v0.16.0
func GetLogicalVolumeFinalizer() string
GetLogicalVolumeFinalizer returns the name of LogicalVolume finalizer
func GetLvcreateOptionClassKey ¶ added in v0.18.0
func GetLvcreateOptionClassKey() string
GetDeviceClassKey returns the key used in CSI volume create requests to specify a lvcreate-option-class.
func GetNodeFinalizer ¶ added in v0.16.0
func GetNodeFinalizer() string
GetNodeFinalizer returns the name of Node finalizer of TopoLVM
func GetPluginName ¶ added in v0.16.0
func GetPluginName() string
GetPluginName returns the name of the CSI plugin.
func GetResizeRequestedAtKey ¶ added in v0.16.0
func GetResizeRequestedAtKey() string
GetResizeRequestedAtKey returns the key of LogicalVolume that represents the timestamp of the resize request.
func GetTopologyNodeKey ¶ added in v0.16.0
func GetTopologyNodeKey() string
TopologyNodeKey returns the key of topology that represents node name.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
api
|
|
legacy/v1
Package v1 contains API Schema definitions for the topolvm v1 API group +kubebuilder:object:generate=true +groupName=topolvm.cybozu.com
|
Package v1 contains API Schema definitions for the topolvm v1 API group +kubebuilder:object:generate=true +groupName=topolvm.cybozu.com |
v1
Package v1 contains API Schema definitions for the topolvm v1 API group +kubebuilder:object:generate=true +groupName=topolvm.io
|
Package v1 contains API Schema definitions for the topolvm v1 API group +kubebuilder:object:generate=true +groupName=topolvm.io |
cmd
|
|
internal
|
|
pkg
|
|
test
|
|