Skip to content

Is symlinks option (--links) on volumeAttributes on PV working? #63

@386jp

Description

@386jp

I'm trying to use rclone's symlink option (--links) on csi-rclone, however it seems it's not working since .rclonelink file is not converting to symlink nor accepting ln -s command inside mount.

Here is my PV configuration:

apiVersion: v1
kind: PersistentVolume
metadata:
  name: s3-pv
  namespace: test
spec:
  accessModes:
    - ReadWriteMany
  capacity:
    storage: 10Gi
  storageClassName: rclone
  csi:
    driver: csi-rclone
    volumeHandle: rclone-csi-test
    volumeAttributes:
      remote: s3
      remotePath: bucket
      file-perms: "0777"
      s3-provider: Rclone
      s3-endpoint: http://s3-mock-service.test.svc.cluster.local
      s3-use-multipart-uploads: "false"
      links: "true"

I'm not using rclone-secret Secret object or any annotations for additional configuration, so PV configuration above is my only configuration for csi-rclone.

When I mount this PV, I only get symlink.rclonelink file which I created before on my local rclone instance connecting to same remote. Also, when I run command like ln -s /data/another_symlink_test /tmp, I don't get any symlinked directory nor .rclonelink file.

I want to control which mount can be able to use symlink option, so I'd like to use PV's configuration rather than using rclone-secret object.

Is there an any way to use this option? or am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions