diff --git a/pkg/blob/blob.go b/pkg/blob/blob.go index b3735c9d2..b2433ba3c 100644 --- a/pkg/blob/blob.go +++ b/pkg/blob/blob.go @@ -1056,7 +1056,8 @@ func appendDefaultMountOptions(mountOptions []string, tmpPath, containerName str // prevent billing charges on mounting "--cancel-list-on-mount-seconds": "10", // allow remounting using a non-empty tmp-path - "--empty-dir-check": "false", + "--empty-dir-check": "false", + "--disable-version-check": "true", } // stores the mount options already included in mountOptions diff --git a/pkg/blob/blob_test.go b/pkg/blob/blob_test.go index 2266e727d..0969125e5 100644 --- a/pkg/blob/blob_test.go +++ b/pkg/blob/blob_test.go @@ -1414,6 +1414,7 @@ func TestAppendDefaultMountOptions(t *testing.T) { containerName: "containerName", expected: []string{"--cancel-list-on-mount-seconds=10", "--container-name=containerName", + "--disable-version-check=true", "--pre-mount-validate=true", "--empty-dir-check=false", "--tmp-path=/tmp", @@ -1427,6 +1428,7 @@ func TestAppendDefaultMountOptions(t *testing.T) { containerName: "containerName", expected: []string{"--cancel-list-on-mount-seconds=0", "--container-name=containerName", + "--disable-version-check=true", "--pre-mount-validate=false", "--empty-dir-check=false", "--tmp-path=/tmp", @@ -1440,6 +1442,7 @@ func TestAppendDefaultMountOptions(t *testing.T) { containerName: "containerName", expected: []string{"--cancel-list-on-mount-seconds=10", "--container-name=containerName", + "--disable-version-check=true", "--pre-mount-validate=false", "--empty-dir-check=false", "--tmp-path=/var/log", @@ -1447,6 +1450,20 @@ func TestAppendDefaultMountOptions(t *testing.T) { "targetPath", }, }, + { + options: []string{"targetPath", "--tmp-path=/var/log", "--disable-version-check=false"}, + tmpPath: "/tmp", + containerName: "containerName", + expected: []string{"--cancel-list-on-mount-seconds=10", + "--container-name=containerName", + "--disable-version-check=false", + "--pre-mount-validate=true", + "--empty-dir-check=false", + "--tmp-path=/var/log", + "--use-https=true", + "targetPath", + }, + }, } for _, test := range tests {