File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
controllers/cloudinit/scripts
integration/cluster-manifests Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,23 @@ shift
16
16
17
17
# Loop over the given join addresses until microk8s join command succeeds.
18
18
joined=" false"
19
+ attempts=0
20
+ max_attempts=30
19
21
while [ " $joined " = " false" ]; do
20
22
21
23
for url in " ${@ } " ; do
24
+ if [ $attempts -ge $max_attempts ]; then
25
+ echo " Max join retry limit reached, exiting."
26
+ exit 1
27
+ fi
28
+
22
29
if microk8s join " ${url} " $join_args ; then
23
30
joined=" true"
24
31
break
25
32
fi
26
33
27
- echo " Failed to join MicroK8s cluster, will retry"
34
+ echo " Failed to join MicroK8s cluster, retrying ($(( attempts+ 1 )) /$max_attempts )"
35
+ attempts=$(( attempts+ 1 ))
28
36
sleep 5
29
37
done
30
38
Original file line number Diff line number Diff line change 47
47
apiVersion : infrastructure.cluster.x-k8s.io/v1beta2
48
48
kind : AWSMachineTemplate
49
49
name : test-ci-cluster-control-plane
50
- replicas : 1
50
+ replicas : 3
51
51
upgradeStrategy : SmartUpgrade
52
52
version : v1.27.0
53
53
---
You can’t perform that action at this time.
0 commit comments