File tree Expand file tree Collapse file tree 6 files changed +12
-0
lines changed Expand file tree Collapse file tree 6 files changed +12
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ SET_READ_AHEAD_SIZE=${SET_READ_AHEAD_SIZE:-true}
2323MIGRATE_K8S_REPO=${MIGRATE_K8S_REPO:- false}
2424READ_AHEAD_KB=${READ_AHEAD_KB:- 15380}
2525KUBELET_PATH=${KUBELET_PATH:-/ var/ lib/ kubelet}
26+ ALLOW_PACKAGE_INSTALL_DOWNGRADE=${ALLOW_PACKAGE_INSTALL_DOWNGRADE:- true}
27+
2628if [ " $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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments