Skip to content

Commit 5555381

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

File tree

10 files changed

+1399
-38
lines changed

10 files changed

+1399
-38
lines changed

.golangci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ issues:
2323
- path: .*\.go
2424
linters:
2525
- unused
26+
# Temporary: suppress deprecated Endpoints API warning until dadi migrates to EndpointSlice.
27+
- path: pkg/dadi/.*\.go
28+
text: corev1\.Endpoints is deprecated
29+
linters:
30+
- staticcheck
2631

2732
# Mode of the generated files analysis.
2833
#

_typos.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ teh = "teh"
1010
ded = "ded"
1111
eles = "eles"
1212
TAGED = "TAGED"
13+
Entrie = "Entrie"
14+
DescribeFilesetsResponseBodyEntriesEntrie = "DescribeFilesetsResponseBodyEntriesEntrie"

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)