Skip to content

Commit f0294f6

Browse files
committed
Support bmcpfs fileset dynamic provisioning
1 parent 042958f commit f0294f6

File tree

8 files changed

+1392
-38
lines changed

8 files changed

+1392
-38
lines changed

pkg/bmcpfs/bmcpfs.go

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,31 @@ import (
2424
)
2525

2626
const (
27-
driverType = "bmcpfs"
28-
driverName = "bmcpfsplugin.csi.alibabacloud.com"
27+
driverType = "bmcpfs"
28+
driverName = "bmcpfsplugin.csi.alibabacloud.com"
29+
uniqVolumePrefix = "kubernetes.io/csi/bmcpfsplugin.csi.alibabacloud.com"
2930

3031
// keys in volume context or publish context
3132
_vpcMountTarget = "vpcMountTarget"
3233
_vscMountTarget = "vscMountTarget"
33-
_vscId = "vscId"
34+
_vscID = "vscId"
3435
_networkType = "networkType"
3536
_path = "path"
3637
_mpAutoSwitch = "mountpointAutoSwitch"
3738

38-
// prefix of node id
39-
CommonNodeIDPrefix = "common:"
39+
// CommonNodeIDPrefix is the prefix for common node IDs
40+
CommonNodeIDPrefix = "common:"
41+
// LingjunNodeIDPrefix is the prefix for lingjun node IDs
4042
LingjunNodeIDPrefix = "lingjun:"
4143

4244
// network types of CPFS mount targets
4345
networkTypeVPC = "vpc"
4446
networkTypeVSC = "vsc"
4547

4648
volumeHandleDelimiter = "+"
49+
50+
// NodeIDIndex is the index name for node ID in the informer cache
51+
NodeIDIndex = "nodeid-index"
4752
)
4853

4954
type Driver struct {

0 commit comments

Comments
 (0)