You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enableStoragePoolsFlag=flag.Bool("enable-storage-pools", false, "If set to true, the CSI Driver will allow volumes to be provisioned in Storage Pools")
74
77
enableControllerDataCacheFlag=flag.Bool("enable-controller-data-cache", false, "If set to true, the CSI Driver will allow volumes to be provisioned with data cache configuration")
75
78
enableNodeDataCacheFlag=flag.Bool("enable-node-data-cache", false, "If set to true, the CSI Driver will allow volumes to be provisioned with data cache configuration")
79
+
nodeName=flag.String("node-name", "", "The node this driver is running on")
76
80
77
81
multiZoneVolumeHandleDiskTypesFlag=flag.String("multi-zone-volume-handle-disk-types", "", "Comma separated list of allowed disk types that can use the multi-zone volumeHandle. Used only if --multi-zone-volume-handle-enable")
78
82
multiZoneVolumeHandleEnableFlag=flag.Bool("multi-zone-volume-handle-enable", false, "If set to true, the multi-zone volumeHandle feature will be enabled")
@@ -91,7 +95,9 @@ var (
91
95
)
92
96
93
97
const (
94
-
driverName="pd.csi.storage.gke.io"
98
+
driverName="pd.csi.storage.gke.io"
99
+
dataCacheLabel="datacache-storage-gke-io"
100
+
dataCacheLabelValue="enabled"
95
101
)
96
102
97
103
funcinit() {
@@ -235,12 +241,14 @@ func handle() {
235
241
}
236
242
237
243
if*enableNodeDataCacheFlag {
238
-
klog.V(2).Info("Raiding local ssds to setup data cache")
239
-
err:=driver.RaidLocalSsds()
240
-
iferr!=nil {
241
-
klog.Fatalf("Failed to Raid local SSDs, unable to setup data caching, got error %v", err)
244
+
ifnodeName==nil||*nodeName=="" {
245
+
klog.Fatalf("Data cache enabled, but --node-name not passed")
0 commit comments