File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ capz::util::generate_ssh_key
66
66
echo " ================ DOCKER BUILD ==============="
67
67
PULL_POLICY=IfNotPresent make modules docker-build
68
68
69
- setup () {
69
+ create_cluster () {
70
70
echo " ================ MAKE CLEAN ==============="
71
71
make clean
72
72
@@ -75,17 +75,14 @@ setup() {
75
75
76
76
echo " ================ INSTALL TOOLS ==============="
77
77
make install-tools
78
- }
79
78
80
- create_cluster () {
81
79
echo " ================ CREATE CLUSTER ==============="
82
80
make create-cluster
83
81
}
84
82
85
83
retries=$CLUSTER_CREATE_ATTEMPTS
86
- while (( retries > 0 )) ; do
87
- setup
88
- create_cluster && break
89
- sleep 5
90
- (( retries -- ))
84
+ until create_cluster; do
85
+ if (( -- retries == 0 )) ; then
86
+ exit 1
87
+ fi
91
88
done
You can’t perform that action at this time.
0 commit comments