forked from kubernetes-sigs/blob-csi-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 0c185e7 Merge: bd1e028 3f47b3e Author: weizhichen <weizhichen@microsoft.com> Date: Mon Nov 6 05:27:11 2023 +0000 Merge branch 'master' of https://github.com/kubernetes-sigs/blob-csi-driver into support-openshift commit bd1e028 Author: weizhichen <weizhichen@microsoft.com> Date: Wed Oct 18 08:40:28 2023 +0000 fix commit 6270feb Merge: 697f9ab b99e1cf Author: weizhichen <weizhichen@microsoft.com> Date: Wed Oct 18 07:30:33 2023 +0000 Merge branch 'master' of https://github.com/kubernetes-sigs/blob-csi-driver into support-openshift commit 697f9ab Author: weizhichen <weizhichen@microsoft.com> Date: Mon Oct 16 08:07:59 2023 +0000 arm commit c79dc0f Author: weizhichen <weizhichen@microsoft.com> Date: Mon Oct 16 07:16:45 2023 +0000 fix commit 7096aa8 Author: weizhichen <weizhichen@microsoft.com> Date: Mon Oct 16 07:06:17 2023 +0000 fix commit 617ea0e Author: weizhichen <weizhichen@microsoft.com> Date: Mon Oct 16 06:48:07 2023 +0000 add mariner commit 2f4473c Author: weizhichen <weizhichen@microsoft.com> Date: Mon Oct 16 06:06:48 2023 +0000 fix commit ee5e239 Author: weizhichen <weizhichen@microsoft.com> Date: Mon Oct 16 06:01:50 2023 +0000 fix commit fd8e1f5 Author: weizhichen <weizhichen@microsoft.com> Date: Mon Oct 16 05:47:02 2023 +0000 fix commit babe2f0 Author: weizhichen <weizhichen@microsoft.com> Date: Mon Oct 16 05:44:54 2023 +0000 fix commit 6ce12c8 Author: weizhichen <weizhichen@microsoft.com> Date: Mon Oct 16 04:17:51 2023 +0000 support openshift commit 38f50a9 Author: weizhichen <weizhichen@microsoft.com> Date: Mon Oct 16 02:48:57 2023 +0000 Revert "support openshift" This reverts commit e15df33. commit e15df33 Author: weizhichen <weizhichen@microsoft.com> Date: Fri Oct 13 07:27:24 2023 +0000 support openshift
- Loading branch information
Showing
11 changed files
with
306 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/bin/sh | ||
|
||
# Copyright 2019 The Kubernetes Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
set -xe | ||
|
||
# install blobfuse/blobfuse2 | ||
echo "skip install blobfuse/blobfuse2 for mariner...." | ||
|
||
# install blobfuse-proxy | ||
updateBlobfuseProxy="true" | ||
if [ -f "/host/usr/bin/blobfuse-proxy" ];then | ||
old=$(sha256sum /host/usr/bin/blobfuse-proxy | awk '{print $1}') | ||
new=$(sha256sum /blobfuse-proxy/blobfuse-proxy | awk '{print $1}') | ||
if [ "$old" = "$new" ];then | ||
updateBlobfuseProxy="false" | ||
echo "no need to update blobfuse-proxy" | ||
fi | ||
fi | ||
if [ "$updateBlobfuseProxy" = "true" ];then | ||
echo "copy blobfuse-proxy...." | ||
rm -rf /host/var/lib/kubelet/plugins/blob.csi.azure.com/blobfuse-proxy.sock | ||
rm -rf /host/usr/bin/blobfuse-proxy | ||
cp /blobfuse-proxy/blobfuse-proxy /host/usr/bin/blobfuse-proxy | ||
chmod 755 /host/usr/bin/blobfuse-proxy | ||
fi | ||
|
||
updateService="true" | ||
if [ -f "/host/usr/lib/systemd/system/blobfuse-proxy.service" ];then | ||
old=$(sha256sum /host/usr/lib/systemd/system/blobfuse-proxy.service | awk '{print $1}') | ||
new=$(sha256sum /blobfuse-proxy/blobfuse-proxy.service | awk '{print $1}') | ||
if [ "$old" = "$new" ];then | ||
updateService="false" | ||
echo "no need to update blobfuse-proxy.service" | ||
fi | ||
fi | ||
if [ "$updateService" = "true" ];then | ||
echo "copy blobfuse-proxy.service...." | ||
mkdir -p /host/usr/lib/systemd/system | ||
cp /blobfuse-proxy/blobfuse-proxy.service /host/usr/lib/systemd/system/blobfuse-proxy.service | ||
fi | ||
|
||
if [ "${INSTALL_BLOBFUSE_PROXY}" = "true" ];then | ||
if [ "$updateBlobfuseProxy" = "true" ] || [ "$updateService" = "true" ];then | ||
echo "start blobfuse-proxy...." | ||
$HOST_CMD systemctl daemon-reload | ||
$HOST_CMD systemctl enable blobfuse-proxy.service | ||
$HOST_CMD systemctl restart blobfuse-proxy.service | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#!/bin/sh | ||
|
||
# Copyright 2019 The Kubernetes Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
set -xe | ||
|
||
# in coreos, we could just copy the blobfuse2 binary to /usr/local/bin/blobfuse2 | ||
if [ "${INSTALL_BLOBFUSE}" = "true" ] || [ "${INSTALL_BLOBFUSE2}" = "true" ] | ||
then | ||
echo "copy blobfuse2...." | ||
cp /usr/bin/blobfuse2 /host/usr/local/bin/blobfuse2 | ||
fi | ||
|
||
# install blobfuse-proxy | ||
updateBlobfuseProxy="true" | ||
if [ -f "/host/usr/local/bin/blobfuse-proxy" ];then | ||
old=$(sha256sum /host/usr/local/bin/blobfuse-proxy | awk '{print $1}') | ||
new=$(sha256sum /blobfuse-proxy/blobfuse-proxy | awk '{print $1}') | ||
if [ "$old" = "$new" ];then | ||
updateBlobfuseProxy="false" | ||
echo "no need to update blobfuse-proxy" | ||
fi | ||
fi | ||
if [ "$updateBlobfuseProxy" = "true" ];then | ||
echo "copy blobfuse-proxy...." | ||
rm -rf /host/var/lib/kubelet/plugins/blob.csi.azure.com/blobfuse-proxy.sock | ||
rm -rf /host/usr/local/bin/blobfuse-proxy | ||
cp /blobfuse-proxy/blobfuse-proxy /host/usr/local/bin/blobfuse-proxy | ||
chmod 755 /host/usr/local/bin/blobfuse-proxy | ||
fi | ||
|
||
updateService="true" | ||
echo "change from /usr/bin/blobfuse-proxy to /usr/local/bin/blobfuse-proxy in blobfuse-proxy.service" | ||
sed -i 's/\/usr\/bin\/blobfuse-proxy/\/usr\/local\/bin\/blobfuse-proxy/g' /blobfuse-proxy/blobfuse-proxy.service | ||
if [ -f "/host/etc/systemd/system/blobfuse-proxy.service" ];then | ||
old=$(sha256sum /host/etc/systemd/system/blobfuse-proxy.service | awk '{print $1}') | ||
new=$(sha256sum /blobfuse-proxy/blobfuse-proxy.service | awk '{print $1}') | ||
if [ "$old" = "$new" ];then | ||
updateService="false" | ||
echo "no need to update blobfuse-proxy.service" | ||
fi | ||
fi | ||
if [ "$updateService" = "true" ];then | ||
echo "copy blobfuse-proxy.service...." | ||
mkdir -p /host/etc/systemd/system/ | ||
cp /blobfuse-proxy/blobfuse-proxy.service /host/etc/systemd/system/blobfuse-proxy.service | ||
fi | ||
|
||
if [ "${INSTALL_BLOBFUSE_PROXY}" = "true" ];then | ||
if [ "$updateBlobfuseProxy" = "true" ] || [ "$updateService" = "true" ];then | ||
echo "start blobfuse-proxy...." | ||
$HOST_CMD systemctl daemon-reload | ||
$HOST_CMD systemctl enable blobfuse-proxy.service | ||
$HOST_CMD systemctl restart blobfuse-proxy.service | ||
fi | ||
fi |
Oops, something went wrong.