Skip to content

Commit 4f85c57

Browse files
authored
Merge pull request #1679 from andyzhangx/disable-install-blobfuse-v1
fix: don't install blobfuse v1 by default since it's deprecated
2 parents 604f9ca + 7defa64 commit 4f85c57

File tree

7 files changed

+16
-4
lines changed

7 files changed

+16
-4
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ CSI_IMAGE_TAG_LATEST = $(REGISTRY)/$(IMAGE_NAME):latest
3030
BUILD_DATE ?= $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
3131
LDFLAGS ?= "-X ${PKG}/pkg/blob.driverVersion=${IMAGE_VERSION} -X ${PKG}/pkg/blob.gitCommit=${GIT_COMMIT} -X ${PKG}/pkg/blob.buildDate=${BUILD_DATE} -s -w -extldflags '-static'"
3232
ifdef ENABLE_BLOBFUSE_PROXY
33-
E2E_HELM_OPTIONS ?= --set image.blob.pullPolicy=Always --set image.blob.repository=$(REGISTRY)/$(IMAGE_NAME) --set image.blob.tag=$(IMAGE_VERSION) --set driver.userAgentSuffix="e2e-test" --set controller.logLevel=6 --set node.logLevel=6 --set node.enableBlobfuseProxy=true
33+
E2E_HELM_OPTIONS ?= --set image.blob.pullPolicy=Always --set image.blob.repository=$(REGISTRY)/$(IMAGE_NAME) --set image.blob.tag=$(IMAGE_VERSION) --set driver.userAgentSuffix="e2e-test" --set controller.logLevel=6 --set node.logLevel=6 --set node.enableBlobfuseProxy=true --set node.blobfuseProxy.migrateK8sRepo=true
3434
else
35-
E2E_HELM_OPTIONS ?= --set image.blob.pullPolicy=Always --set image.blob.repository=$(REGISTRY)/$(IMAGE_NAME) --set image.blob.tag=$(IMAGE_VERSION) --set driver.userAgentSuffix="e2e-test"
35+
E2E_HELM_OPTIONS ?= --set image.blob.pullPolicy=Always --set image.blob.repository=$(REGISTRY)/$(IMAGE_NAME) --set image.blob.tag=$(IMAGE_VERSION) --set driver.userAgentSuffix="e2e-test" --set node.blobfuseProxy.migrateK8sRepo=true
3636
endif
3737
E2E_HELM_OPTIONS += ${EXTRA_HELM_OPTIONS}
3838
GO111MODULE = on
37 Bytes
Binary file not shown.

charts/latest/blob-csi-driver/templates/csi-blob-node.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ spec:
102102
value: "{{ .Values.node.blobfuseProxy.disableUpdateDB }}"
103103
- name: KUBELET_PATH
104104
value: "{{ .Values.linux.kubelet }}"
105+
- name: MIGRATE_K8S_REPO
106+
value: "{{ .Values.node.blobfuseProxy.migrateK8sRepo }}"
105107
volumeMounts:
106108
- name: host-usr
107109
mountPath: /host/usr

charts/latest/blob-csi-driver/values.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,14 @@ node:
120120
logLevel: 5
121121
enableBlobfuseProxy: true
122122
blobfuseProxy:
123-
installBlobfuse: true
123+
installBlobfuse: false
124124
blobfuseVersion: "1.4.5"
125125
installBlobfuse2: true
126126
blobfuse2Version: "2.3.2"
127127
setMaxOpenFileNum: true
128128
maxOpenFileNum: "9000000"
129129
disableUpdateDB: true
130+
migrateK8sRepo: false
130131
blobfuseCachePath: /mnt
131132
appendTimeStampInCacheDir: false
132133
mountPermissions: 0777

deploy/csi-blob-node.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ spec:
5555
- name: INSTALL_BLOBFUSE_PROXY
5656
value: "true"
5757
- name: INSTALL_BLOBFUSE
58-
value: "true"
58+
value: "false"
5959
- name: BLOBFUSE_VERSION
6060
value: "1.4.5"
6161
- name: INSTALL_BLOBFUSE2

pkg/blobfuse-proxy/init.sh

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ INSTALL_BLOBFUSE_PROXY=${INSTALL_BLOBFUSE_PROXY:-true}
2020
DISABLE_UPDATEDB=${DISABLE_UPDATEDB:-true}
2121
SET_MAX_OPEN_FILE_NUM=${SET_MAX_OPEN_FILE_NUM:-true}
2222
SET_READ_AHEAD_SIZE=${SET_READ_AHEAD_SIZE:-true}
23+
MIGRATE_K8S_REPO=${MIGRATE_K8S_REPO:-false}
2324
READ_AHEAD_KB=${READ_AHEAD_KB:-15380}
2425
KUBELET_PATH=${KUBELET_PATH:-/var/lib/kubelet}
2526
if [ "$KUBELET_PATH" != "/var/lib/kubelet" ];then

pkg/blobfuse-proxy/install-proxy.sh

+8
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ then
3333
else
3434
cp /blobfuse-proxy/packages-microsoft-prod-22.04.deb /host/etc/packages-microsoft-prod.deb
3535
fi
36+
37+
if [ "${MIGRATE_K8S_REPO}" = "true" ]
38+
then
39+
# https://kubernetes.io/blog/2023/08/15/pkgs-k8s-io-introduction/#how-to-migrate
40+
echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.30/deb/ /" | tee /host/etc/apt/sources.list.d/kubernetes.list
41+
$HOST_CMD curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.30/deb/Release.key | $HOST_CMD gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
42+
fi
43+
3644
# when running dpkg -i /etc/packages-microsoft-prod.deb, need to enter y to continue.
3745
# refer to https://stackoverflow.com/questions/45349571/how-to-install-deb-with-dpkg-non-interactively
3846
yes | $HOST_CMD dpkg -i /etc/packages-microsoft-prod.deb && $HOST_CMD apt update

0 commit comments

Comments
 (0)