@@ -28,11 +28,11 @@ common_helm_args=()
28
28
anth_helm_args=(
29
29
upgrade
30
30
--install
31
- $CLUSTER_NAME -anth
32
- $SCRIPTPATH /../../config/helm/aws-node-termination-handler/
31
+ " $CLUSTER_NAME -anth"
32
+ " $SCRIPTPATH /../../config/helm/aws-node-termination-handler/"
33
33
--wait
34
34
--namespace kube-system
35
- --set instanceMetadataURL=${INSTANCE_METADATA_URL:- " http://$AEMM_URL :$IMDS_PORT " }
35
+ --set instanceMetadataURL=" ${INSTANCE_METADATA_URL:- " http://$AEMM_URL :$IMDS_PORT " } "
36
36
--set image.repository=" $NODE_TERMINATION_HANDLER_DOCKER_REPO "
37
37
--set image.tag=" $NODE_TERMINATION_HANDLER_DOCKER_TAG "
38
38
--set enableSpotInterruptionDraining=" true"
52
52
emtp_helm_args=(
53
53
upgrade
54
54
--install
55
- $CLUSTER_NAME -emtp
56
- $SCRIPTPATH /../../config/helm/webhook-test-proxy/
55
+ " $CLUSTER_NAME -emtp"
56
+ " $SCRIPTPATH /../../config/helm/webhook-test-proxy/"
57
57
--wait
58
58
--namespace default
59
59
--set webhookTestProxy.image.repository=" $WEBHOOK_DOCKER_REPO "
@@ -71,14 +71,14 @@ set +x
71
71
aemm_helm_args=(
72
72
upgrade
73
73
--install
74
- $CLUSTER_NAME -aemm
75
- $AEMM_DL_URL
74
+ " $CLUSTER_NAME -aemm"
75
+ " $AEMM_DL_URL "
76
76
--wait
77
77
--namespace default
78
78
--set servicePort=" $IMDS_PORT "
79
79
--set ' tolerations[0].effect=NoSchedule'
80
80
--set ' tolerations[0].operator=Exists'
81
- --set arguments={events}
81
+ --set arguments=' {events}'
82
82
)
83
83
[[ ${# common_helm_args[@]} -gt 0 ]] &&
84
84
aemm_helm_args+=(" ${common_helm_args[@]} " )
@@ -92,13 +92,14 @@ TAINT_CHECK_SLEEP=15
92
92
93
93
DEPLOYED=0
94
94
95
- for i in ` seq 1 10 ` ; do
95
+ for i in ` seq 1 $TAINT_CHECK_CYCLES ` ; do
96
96
if [[ $( kubectl get deployments regular-pod-test -o jsonpath=' {.status.unavailableReplicas}' ) -eq 0 ]]; then
97
97
echo " ✅ Verified regular-pod-test pod was scheduled and started!"
98
98
DEPLOYED=1
99
99
break
100
100
fi
101
- sleep 5
101
+ echo " Setup Loop $i /$TAINT_CHECK_CYCLES , sleeping for $TAINT_CHECK_SLEEP seconds"
102
+ sleep $TAINT_CHECK_SLEEP
102
103
done
103
104
104
105
if [[ $DEPLOYED -eq 0 ]]; then
109
110
cordoned=0
110
111
tainted=0
111
112
evicted=0
112
- test_node=${TEST_NODE:- $CLUSTER_NAME -worker}
113
+ test_node=" ${TEST_NODE:- $CLUSTER_NAME -worker} "
113
114
for i in ` seq 1 $TAINT_CHECK_CYCLES ` ; do
114
115
if [[ $cordoned -eq 0 ]] && kubectl get nodes $test_node --no-headers | grep SchedulingDisabled > /dev/null; then
115
116
echo " ✅ Verified the worker node was cordoned!"
@@ -126,6 +127,7 @@ for i in `seq 1 $TAINT_CHECK_CYCLES`; do
126
127
evicted=1
127
128
break
128
129
fi
130
+ echo " Assertion Loop $i /$TAINT_CHECK_CYCLES , sleeping for $TAINT_CHECK_SLEEP seconds"
129
131
sleep $TAINT_CHECK_SLEEP
130
132
done
131
133
143
145
aemm_helm_args=(
144
146
upgrade
145
147
--install
146
- $CLUSTER_NAME -aemm
147
- $AEMM_DL_URL
148
+ " $CLUSTER_NAME -aemm"
149
+ " $AEMM_DL_URL "
148
150
--wait
149
151
--namespace default
150
152
--set servicePort=" $IMDS_PORT "
151
153
--set aemm.events.state=" canceled"
152
154
--set ' tolerations[0].effect=NoSchedule'
153
155
--set ' tolerations[0].operator=Exists'
154
- --set arguments={events}
156
+ --set arguments=' {events}'
155
157
)
156
158
[[ ${# common_helm_args[@]} -gt 0 ]] &&
157
159
aemm_helm_args+=(" ${common_helm_args[@]} " )
@@ -163,8 +165,8 @@ set +x
163
165
emtp_helm_args=(
164
166
upgrade
165
167
--install
166
- $CLUSTER_NAME -emtp
167
- $SCRIPTPATH /../../config/helm/webhook-test-proxy/
168
+ " $CLUSTER_NAME -emtp"
169
+ " $SCRIPTPATH /../../config/helm/webhook-test-proxy/"
168
170
--wait
169
171
--namespace default
170
172
--set webhookTestProxy.image.repository=" $WEBHOOK_DOCKER_REPO "
@@ -189,6 +191,7 @@ for i in `seq 1 $TAINT_CHECK_CYCLES`; do
189
191
echo " ✅ Test Maintenance Event Cancellation passed! $CLUSTER_NAME ✅"
190
192
exit 0
191
193
fi
194
+ echo " Assertion Loop $i /$TAINT_CHECK_CYCLES , sleeping for $TAINT_CHECK_SLEEP seconds"
192
195
sleep $TAINT_CHECK_SLEEP
193
196
done
194
197
0 commit comments