fix: fix vcluster creation script
This commit is contained in:
@@ -27,10 +27,13 @@ if [ $? = 0 ]; then
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
kubectl --context $name-vcluster -n dapr-system wait pod --for=condition=ready -l app=dapr-operator
|
vcluster connect $name-vcluster -- kubectl -n dapr-system wait pod --for=condition=ready -l app=dapr-operator
|
||||||
echo "wating for Dapr..."
|
echo "wating 20s for Dapr..."
|
||||||
sleep 15
|
sleep 20
|
||||||
kubectl kustomize ../resources/atlantis/manifests/staging | kubectl --context $name-vcluster apply -f-
|
tmp=/tmp/$name-vlcuster.tmp$$
|
||||||
|
kubectl kustomize ../resources/atlantis/manifests/staging > $tmp
|
||||||
|
vcluster connect $name-vcluster -- kubectl apply -f $tmp
|
||||||
|
rm $tmp
|
||||||
else
|
else
|
||||||
cat << EOF
|
cat << EOF
|
||||||
***
|
***
|
||||||
|
|||||||
Reference in New Issue
Block a user