• Jing Xu's avatar
    fix issue in converting aws volume id from mount paths · 3d3e44e7
    Jing Xu authored
    This PR is to fix the issue in converting aws volume id from mount
    paths. Currently there are three aws volume id formats supported. The
    following lists example of those three formats and their corresponding
    global mount paths:
    1. aws:///vol-123456
    (/var/lib/kubelet/plugins/kubernetes.io/aws-ebs/mounts/aws/vol-123456)
    2. aws://us-east-1/vol-123456
    (/var/lib/kubelet/plugins/kubernetes.io/mounts/aws/us-est-1/vol-123455)
    3. vol-123456
    (/var/lib/kubelet/plugins/kubernetes.io/mounts/aws/us-est-1/vol-123455)
    
    For the first two cases, we need to check the mount path and convert
    them back to the original format.
    3d3e44e7
Name
Last commit
Last update
..
BUILD Loading commit data...
doc.go Loading commit data...
fake.go Loading commit data...
mount.go Loading commit data...
mount_linux.go Loading commit data...
mount_linux_test.go Loading commit data...
mount_unsupported.go Loading commit data...
nsenter_mount.go Loading commit data...
nsenter_mount_unsupported.go Loading commit data...
safe_format_and_mount_test.go Loading commit data...