Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified charts/latest/blob-csi-driver-v0.0.0.tgz
Binary file not shown.
2 changes: 2 additions & 0 deletions charts/latest/blob-csi-driver/templates/csi-blob-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ spec:
value: "{{ .Values.node.blobfuseProxy.migrateK8sRepo }}"
- name: SET_READ_AHEAD_SIZE
value: "{{ .Values.node.blobfuseProxy.setReadAheadSize }}"
- name: ALLOW_PACKAGE_INSTALL_DOWNGRADE
value: "{{ .Values.node.blobfuseProxy.allowPackageInstallDowngrade }}"
volumeMounts:
- name: host-usr
mountPath: /host/usr
Expand Down
1 change: 1 addition & 0 deletions charts/latest/blob-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ node:
disableUpdateDB: true
migrateK8sRepo: false
setReadAheadSize: true
allowPackageInstallDowngrade: true
blobfuseCachePath: /mnt
appendTimeStampInCacheDir: false
mountPermissions: 0777
Expand Down
2 changes: 2 additions & 0 deletions deploy/csi-blob-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ spec:
value: "9000000"
- name: DISABLE_UPDATEDB
value: "true"
- name: ALLOW_PACKAGE_INSTALL_DOWNGRADE
value: "true"
volumeMounts:
- name: host-usr
mountPath: /host/usr
Expand Down
2 changes: 2 additions & 0 deletions pkg/blobfuse-proxy/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ SET_READ_AHEAD_SIZE=${SET_READ_AHEAD_SIZE:-true}
MIGRATE_K8S_REPO=${MIGRATE_K8S_REPO:-false}
READ_AHEAD_KB=${READ_AHEAD_KB:-15380}
KUBELET_PATH=${KUBELET_PATH:-/var/lib/kubelet}
ALLOW_PACKAGE_INSTALL_DOWNGRADE=${ALLOW_PACKAGE_INSTALL_DOWNGRADE:-true}

if [ "$KUBELET_PATH" != "/var/lib/kubelet" ];then
echo "kubelet path is $KUBELET_PATH, update blobfuse-proxy.service...."
sed -i "s#--blobfuse-proxy-endpoint[^ ]*#--blobfuse-proxy-endpoint=unix:/${KUBELET_PATH}/plugins/blob.csi.azure.com/blobfuse-proxy.sock#" /blobfuse-proxy/blobfuse-proxy.service
Expand Down
5 changes: 5 additions & 0 deletions pkg/blobfuse-proxy/install-proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ then
fi
fi

if [ "${ALLOW_PACKAGE_INSTALL_DOWNGRADE}" = "true" ]; then
echo "allow package install downgrade"
pkg_list="${pkg_list} --allow-downgrades"
fi

echo "begin to install ${pkg_list}"
$HOST_CMD apt-get install -y $pkg_list || true
$HOST_CMD rm -f /etc/packages-microsoft-prod.deb
Expand Down
Loading