Skip to content

Commit cedb747

Browse files
authored
Donot pass rclone param to cos-csi-mounter (#192)
1 parent ca50278 commit cedb747

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pkg/mounter/mounter-rclone.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -336,17 +336,5 @@ func (rclone *RcloneMounter) formulateMountOptions(bucket, target, configPathWit
336336

337337
workerNodeOp["uid"] = rclone.UID
338338
}
339-
340-
for _, val := range rclone.MountOptions {
341-
nodeServerOp = append(nodeServerOp, val)
342-
343-
flag := strings.TrimPrefix(val, "--")
344-
splitVal := strings.Split(flag, "=")
345-
if len(splitVal) == 1 {
346-
workerNodeOp[splitVal[0]] = "true"
347-
} else {
348-
workerNodeOp[splitVal[0]] = splitVal[1]
349-
}
350-
}
351339
return
352340
}

0 commit comments

Comments
 (0)