Skip to content

Commit 3e98d88

Browse files
authored
Merge pull request #403 from andyzhangx/blobfuse-1.3.7
feat: support blobfuse v1.3.7
2 parents 8839f5b + d169262 commit 3e98d88

File tree

8 files changed

+9
-7
lines changed

8 files changed

+9
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This driver allows Kubernetes to access Azure Storage through one of following m
1515
### Container Images & Kubernetes Compatibility:
1616
|driver version |Image | supported k8s version | built-in blobfuse version |
1717
|----------------|-------------------------------------------|-----------------------|---------------------------|
18-
|master branch |mcr.microsoft.com/k8s/csi/blob-csi:latest | 1.16+ | 1.3.6 |
18+
|master branch |mcr.microsoft.com/k8s/csi/blob-csi:latest | 1.16+ | 1.3.7 |
1919
|v1.0.0 |mcr.microsoft.com/k8s/csi/blob-csi:v1.0.0 | 1.16+ | 1.3.6 |
2020
|v0.11.0 |mcr.microsoft.com/k8s/csi/blob-csi:v0.11.0 | 1.15+ | 1.3.6 |
2121
|v0.10.0 |mcr.microsoft.com/k8s/csi/blob-csi:v0.10.0 | 1.15+ | 1.3.5 |

deploy/blobfuse-proxy/blobfuse-proxy.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,9 @@ spec:
3737
- '-c'
3838
- |
3939
set -xe
40-
apt update
41-
# update blobfuse version on the host to 1.3.6
4240
wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
4341
dpkg -i packages-microsoft-prod.deb
44-
apt-get update
45-
apt-get install -y blobfuse=1.3.6
42+
apt-get update && apt-get install -y blobfuse
4643
# download blobfuse-proxy .deb package
4744
wget https://github.com/kubernetes-sigs/blob-csi-driver/raw/master/deploy/blobfuse-proxy/v0.1.0/blobfuse-proxy-v0.1.0.deb -O /tmp/blobfuse-proxy-v0.1.0.deb
4845
dpkg -i /tmp/blobfuse-proxy-v0.1.0.deb

deploy/example/storageclass-blobfuse-existing-container.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ mountOptions:
1515
- -o allow_other
1616
- --file-cache-timeout-in-seconds=120
1717
- --use-attr-cache=true
18+
- --cancel-list-on-mount-seconds=60 # prevent billing charges on mounting
1819
- -o attr_timeout=120
1920
- -o entry_timeout=120
2021
- -o negative_timeout=120

deploy/example/storageclass-blobfuse-readonly.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ mountOptions:
1414
- -o ro
1515
- -o allow_other
1616
- --file-cache-timeout-in-seconds=0
17+
- --cancel-list-on-mount-seconds=60 # prevent billing charges on mounting
1718
- --log-level=LOG_DEBUG # only for debugging

deploy/example/storageclass-blobfuse.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ mountOptions:
1212
- -o allow_other
1313
- --file-cache-timeout-in-seconds=120
1414
- --use-attr-cache=true
15+
- --cancel-list-on-mount-seconds=60 # prevent billing charges on mounting
1516
- -o attr_timeout=120
1617
- -o entry_timeout=120
1718
- -o negative_timeout=120

pkg/blobplugin/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ARG ARCH
1717
FROM k8s.gcr.io/build-image/debian-base-${ARCH}:v2.1.3
1818
COPY ./_output/blobplugin /blobplugin
1919
RUN apt-get update && clean-install ca-certificates pkg-config libfuse-dev cmake libcurl4-gnutls-dev libgnutls28-dev uuid-dev libgcrypt20-dev wget
20-
RUN wget -O /tmp/packages-microsoft-prod.deb https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb && dpkg -i /tmp/packages-microsoft-prod.deb && apt-get update && apt install blobfuse fuse -y && rm -f /tmp/packages-microsoft-prod.deb
20+
RUN wget -O /tmp/packages-microsoft-prod.deb https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb && dpkg -i /tmp/packages-microsoft-prod.deb && apt-get update && apt install blobfuse fuse -y && rm -f /tmp/packages-microsoft-prod.deb
2121
RUN apt remove wget -y
2222
# this is a workaround to install nfs-common & nfs-kernel-server and don't quit with error
2323
RUN apt-get update && apt install nfs-common nfs-kernel-server -y || true

pkg/blobplugin/dev.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
FROM mcr.microsoft.com/aks/fundamental/base-ubuntu:v0.0.5
16-
RUN wget -O /tmp/packages-microsoft-prod.deb https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
16+
RUN wget -O /tmp/packages-microsoft-prod.deb https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
1717
RUN dpkg -i /tmp/packages-microsoft-prod.deb && apt-get update && apt-get install -y ca-certificates pkg-config libfuse-dev cmake libcurl4-gnutls-dev libgnutls28-dev uuid-dev libgcrypt20-dev blobfuse nfs-common
1818
LABEL maintainers="andyzhangx"
1919
LABEL description="Azure Blob Storage CSI driver"

test/e2e/dynamic_provisioning_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ var _ = ginkgo.Describe("[blob-csi-e2e] Dynamic Provisioning", func() {
6666
MountOptions: []string{
6767
"-o allow_other",
6868
"--file-cache-timeout-in-seconds=120",
69+
"--cancel-list-on-mount-seconds=0",
6970
},
7071
VolumeMount: testsuites.VolumeMountDetails{
7172
NameGenerate: "test-volume-",
@@ -93,6 +94,7 @@ var _ = ginkgo.Describe("[blob-csi-e2e] Dynamic Provisioning", func() {
9394
MountOptions: []string{
9495
"-o allow_other",
9596
"--file-cache-timeout-in-seconds=120",
97+
"--cancel-list-on-mount-seconds=60",
9698
},
9799
VolumeMount: testsuites.VolumeMountDetails{
98100
NameGenerate: "test-volume-",

0 commit comments

Comments
 (0)