Skip to content

Commit 315190c

Browse files
Remove NODE_NAME environment variable check from createRcloneService function
1 parent 38ec8f7 commit 315190c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/rclone/nodeserver.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -582,12 +582,6 @@ func Mount(remote string, remotePath string, targetPath string, configData strin
582582
}
583583

584584
func createRcloneService(targetPath string, port int) error {
585-
// Get the node name from environment
586-
nodeName := os.Getenv("NODE_NAME")
587-
if nodeName == "" {
588-
return fmt.Errorf("NODE_NAME environment variable not set")
589-
}
590-
591585
// Extract the Pod UUID from the path
592586
// Path format: /var/lib/kubelet/pods/<UUID>/volumes/kubernetes.io~csi/<volume-name>/mount
593587
podUUID := extractPodUUID(targetPath)

0 commit comments

Comments
 (0)