Skip to content

Commit

Permalink
ci: fix dashboard image
Browse files Browse the repository at this point in the history
Signed-off-by: zwwhdls <[email protected]>
  • Loading branch information
zwwhdls committed Nov 15, 2023
1 parent 9970214 commit f514668
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/deploy-csi-in-k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function deploy_csi() {
# The juicefs-csi-{node|controller} pods' containers should be all ready
all_count=$(sudo microk8s.kubectl -n kube-system get pods | grep juicefs-csi | wc -l)
count=$(sudo microk8s.kubectl -n kube-system get pods | grep juicefs-csi | grep Running | awk '{print $2}' | tr '/' '-' | bc | grep '^0$' | wc -l)
if [ $count = 3 ] && [ $all_count = 5 ]; then
if [ $count = 5 ] && [ $all_count = 5 ]; then
node_pod=$(sudo microk8s.kubectl -n kube-system get pods | grep Running | grep juicefs-csi-node | awk '{print $1}' | cut -d/ -f2)
echo "JUICEFS_CSI_NODE_POD:" $node_pod
echo "JUICEFS_CSI_NODE_POD=$node_pod" >>$GITHUB_ENV
Expand Down Expand Up @@ -98,7 +98,7 @@ function deploy_csi_without_kubelet() {
# The juicefs-csi-{node|controller} pods' containers should be all ready
all_count=$(sudo microk8s.kubectl -n kube-system get pods | grep juicefs-csi | wc -l)
count=$(sudo microk8s.kubectl -n kube-system get pods | grep juicefs-csi | grep Running | awk '{print $2}' | tr '/' '-' | bc | grep '^0$' | wc -l)
if [ $count = 3 ] && [ $all_count = 5 ]; then
if [ $count = 5 ] && [ $all_count = 5 ]; then
node_pod=$(sudo microk8s.kubectl -n kube-system get pods | grep Running | grep juicefs-csi-node | awk '{print $1}' | cut -d/ -f2)
echo "JUICEFS_CSI_NODE_POD:" $node_pod
echo "JUICEFS_CSI_NODE_POD=$node_pod" >>$GITHUB_ENV
Expand Down

0 comments on commit f514668

Please sign in to comment.