Skip to content

Commit 0457f25

Browse files
committed
chore: allow package install downgrade by default
1 parent 95bc199 commit 0457f25

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed
49 Bytes
Binary file not shown.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ spec:
106106
value: "{{ .Values.node.blobfuseProxy.migrateK8sRepo }}"
107107
- name: SET_READ_AHEAD_SIZE
108108
value: "{{ .Values.node.blobfuseProxy.setReadAheadSize }}"
109+
- name: ALLOW_PACKAGE_INSTALL_DOWNGRADE
110+
value: "{{ .Values.node.blobfuseProxy.allowPackageInstallDowngrade }}"
109111
volumeMounts:
110112
- name: host-usr
111113
mountPath: /host/usr

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ node:
129129
disableUpdateDB: true
130130
migrateK8sRepo: false
131131
setReadAheadSize: true
132+
allowPackageInstallDowngrade: true
132133
blobfuseCachePath: /mnt
133134
appendTimeStampInCacheDir: false
134135
mountPermissions: 0777

deploy/csi-blob-node.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ spec:
6868
value: "9000000"
6969
- name: DISABLE_UPDATEDB
7070
value: "true"
71+
- name: ALLOW_PACKAGE_INSTALL_DOWNGRADE
72+
value: "true"
7173
volumeMounts:
7274
- name: host-usr
7375
mountPath: /host/usr

pkg/blobfuse-proxy/init.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ SET_READ_AHEAD_SIZE=${SET_READ_AHEAD_SIZE:-true}
2323
MIGRATE_K8S_REPO=${MIGRATE_K8S_REPO:-false}
2424
READ_AHEAD_KB=${READ_AHEAD_KB:-15380}
2525
KUBELET_PATH=${KUBELET_PATH:-/var/lib/kubelet}
26+
ALLOW_PACKAGE_INSTALL_DOWNGRADE=${ALLOW_PACKAGE_INSTALL_DOWNGRADE:-true}
27+
2628
if [ "$KUBELET_PATH" != "/var/lib/kubelet" ];then
2729
echo "kubelet path is $KUBELET_PATH, update blobfuse-proxy.service...."
2830
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

pkg/blobfuse-proxy/install-proxy.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ then
7777
fi
7878
fi
7979

80+
if [ "${ALLOW_PACKAGE_INSTALL_DOWNGRADE}" = "true" ]; then
81+
echo "allow package install downgrade"
82+
pkg_list="${pkg_list} --allow-downgrades"
83+
fi
84+
8085
echo "begin to install ${pkg_list}"
8186
$HOST_CMD apt-get install -y $pkg_list || true
8287
$HOST_CMD rm -f /etc/packages-microsoft-prod.deb

0 commit comments

Comments
 (0)