mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
cks: refactor code to be architecture agnostic (#5629)
* cks: refactor code to be architecture agnostic This makes the CKS setup/install/upgrades architecture agnostic and works on both amd64 and arm64 platforms. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * fix Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> Co-authored-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
817c7c3480
commit
cb67da5bce
@ -93,10 +93,10 @@ write_files:
|
||||
### Binaries available offline ###
|
||||
echo "Installing binaries from ${BINARIES_DIR}"
|
||||
mkdir -p /opt/cni/bin
|
||||
tar -f "${BINARIES_DIR}/cni/cni-plugins-amd64.tgz" -C /opt/cni/bin -xz
|
||||
tar -f "${BINARIES_DIR}/cni/cni-plugins-"*64.tgz -C /opt/cni/bin -xz
|
||||
|
||||
mkdir -p /opt/bin
|
||||
tar -f "${BINARIES_DIR}/cri-tools/crictl-linux-amd64.tar.gz" -C /opt/bin -xz
|
||||
tar -f "${BINARIES_DIR}/cri-tools/crictl-linux-"*64.tar.gz -C /opt/bin -xz
|
||||
|
||||
mkdir -p /opt/bin
|
||||
cd /opt/bin
|
||||
|
||||
@ -113,10 +113,10 @@ write_files:
|
||||
### Binaries available offline ###
|
||||
echo "Installing binaries from ${BINARIES_DIR}"
|
||||
mkdir -p /opt/cni/bin
|
||||
tar -f "${BINARIES_DIR}/cni/cni-plugins-amd64.tgz" -C /opt/cni/bin -xz
|
||||
tar -f "${BINARIES_DIR}/cni/cni-plugins-"*64.tgz -C /opt/cni/bin -xz
|
||||
|
||||
mkdir -p /opt/bin
|
||||
tar -f "${BINARIES_DIR}/cri-tools/crictl-linux-amd64.tar.gz" -C /opt/bin -xz
|
||||
tar -f "${BINARIES_DIR}/cri-tools/crictl-linux-"*64.tar.gz -C /opt/bin -xz
|
||||
|
||||
mkdir -p /opt/bin
|
||||
cd /opt/bin
|
||||
|
||||
@ -93,10 +93,10 @@ write_files:
|
||||
### Binaries available offline ###
|
||||
echo "Installing binaries from ${BINARIES_DIR}"
|
||||
mkdir -p /opt/cni/bin
|
||||
tar -f "${BINARIES_DIR}/cni/cni-plugins-amd64.tgz" -C /opt/cni/bin -xz
|
||||
tar -f "${BINARIES_DIR}/cni/cni-plugins-"*64.tgz -C /opt/cni/bin -xz
|
||||
|
||||
mkdir -p /opt/bin
|
||||
tar -f "${BINARIES_DIR}/cri-tools/crictl-linux-amd64.tar.gz" -C /opt/bin -xz
|
||||
tar -f "${BINARIES_DIR}/cri-tools/crictl-linux-"*64.tar.gz -C /opt/bin -xz
|
||||
|
||||
mkdir -p /opt/bin
|
||||
cd /opt/bin
|
||||
|
||||
@ -107,8 +107,8 @@ if [ -d "$BINARIES_DIR" ]; then
|
||||
cp "${BINARIES_DIR}/autoscaler.yaml" /opt/autoscaler/autoscaler_tmpl.yaml
|
||||
fi
|
||||
|
||||
tar -f "${BINARIES_DIR}/cni/cni-plugins-amd64.tgz" -C /opt/cni/bin -xz
|
||||
tar -f "${BINARIES_DIR}/cri-tools/crictl-linux-amd64.tar.gz" -C /opt/bin -xz
|
||||
tar -f "${BINARIES_DIR}/cni/cni-plugins-"*64.tgz -C /opt/cni/bin -xz
|
||||
tar -f "${BINARIES_DIR}/cri-tools/crictl-linux-"*64.tar.gz -C /opt/bin -xz
|
||||
|
||||
if [ "${IS_MAIN_CONTROL}" == 'true' ]; then
|
||||
set +e
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user