mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
Fix allignment issue in shellscript
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
50a84fb930
commit
520ceb6dcb
@ -61,7 +61,8 @@ build_push_images() {
|
||||
|
||||
# build and push per arch images
|
||||
for ARCH in amd64 arm64; do
|
||||
ifs=$IFS; IFS=
|
||||
ifs=$IFS
|
||||
IFS=
|
||||
digest=$(awk -v ARCH=${ARCH} '{if (archfound) {print $NF; exit 0}}; {archfound=($0 ~ "arch.*"ARCH)}' <<<"${manifests}")
|
||||
IFS=$ifs
|
||||
sed -i "s|\(^FROM.*\)${baseimg}.*$|\1${baseimg}@${digest}|" "${dockerfile}"
|
||||
|
@ -47,7 +47,7 @@ function check_ceph_cluster_health(){
|
||||
if [ "$CEPH_STATE" = "Created" ]; then
|
||||
if [ "$CEPH_HEALTH" = "HEALTH_OK" ]; then
|
||||
echo "Creating CEPH cluster is done. [$CEPH_HEALTH]"
|
||||
break;
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
@ -64,11 +64,11 @@ function check_mds_stat(){
|
||||
ACTIVE_COUNT_NUM=$((ACTIVE_COUNT + 0))
|
||||
echo "MDS ($FS_NAME) active_count: [$ACTIVE_COUNT_NUM]"
|
||||
if ((ACTIVE_COUNT_NUM < 1)); then
|
||||
continue;
|
||||
continue
|
||||
else
|
||||
if kubectl -n rook-ceph get pod -l rook_file_system=myfs | grep Running &>/dev/null; then
|
||||
echo "Filesystem ($FS_NAME) is successfully created..."
|
||||
break;
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user