forked from topolvm/topolvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.go
40 lines (27 loc) · 1.45 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package topolvm
import corev1 "k8s.io/api/core/v1"
// CapacityKey is a key of Node annotation that represents VG free space.
const CapacityKey = "topolvm.cybozu.com/capacity"
// CapacityResource is the resource name of topolvm capacity.
const CapacityResource = corev1.ResourceName("topolvm.cybozu.com/capacity")
// PluginName is the name of the CSI plugin.
const PluginName = "topolvm.cybozu.com"
// TopologyNodeKey is a key of topology that represents node name.
const TopologyNodeKey = "topology.topolvm.cybozu.com/node"
// LogicalVolumeFinalizer is the name of LogicalVolume finalizer
const LogicalVolumeFinalizer = "topolvm.cybozu.com/logicalvolume"
// NodeFinalizer is the name of Node finalizer of TopoLVM
const NodeFinalizer = "topolvm.cybozu.com/node"
// PVCFinalizer is the name of PVC finalizer of TopoLVM
const PVCFinalizer = "topolvm.cybozu.com/pvc"
// DefaultCSISocket is the default path of the CSI socket file.
const DefaultCSISocket = "/run/topolvm/csi-topolvm.sock"
// DefaultLVMdSocket is the default path of the lvmd socket file.
const DefaultLVMdSocket = "/run/topolvm/lvmd.sock"
// SizeVolConKey is the key used to obtain ephemeral inline volume size
// from the volume context
const SizeVolConKey = "topolvm.cybozu.com/size"
// DefaultSizeGb is the default size in GiB for volumes (PVC or inline ephemeral volumes) w/o capacity requests.
const DefaultSizeGb = 1
// DefaultSize is DefaultSizeGb in bytes
const DefaultSize = DefaultSizeGb << 30