Skip to content

Commit 54f99fc

Browse files
authored
chore: fix cloud e2e check failed (#675)
1 parent 302219e commit 54f99fc

12 files changed

+37
-37
lines changed

.github/archive/workflows/cloud-e2e-engine.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,11 @@ jobs:
331331
set -o nounset
332332
sleep 10
333333
while true; do
334-
if kubectl get pods -n default | (grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Completed|Error" || true) ; then
334+
if kubectl get pods -n default | grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Completed|Error" ; then
335335
echo "Cloud E2E Test is Done"
336336
break
337337
fi
338-
if kubectl get pods -n default | (grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Running|Error" || true) ; then
338+
if kubectl get pods -n default | grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Running|Error" ; then
339339
kubectl logs -n default ${CLOUD_E2E_TEST_POD_NAME} --tail=5
340340
else
341341
echo "Waiting for Cloud E2E to be Running..."

.github/archive/workflows/cloud-e2e-k3s-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
sleep 10
127127
check_status=0
128128
for i in {1..200}; do
129-
if kubectl get pods -n kb-cloud | (grep "kb-cloud-installer" | grep Completed || true) ; then
129+
if kubectl get pods -n kb-cloud | grep "kb-cloud-installer" | grep Completed ; then
130130
echo "KB Cloud is ready"
131131
check_status=1
132132
break
@@ -192,7 +192,7 @@ jobs:
192192
sleep 10
193193
check_status=0
194194
for i in {1..200}; do
195-
if kubectl get pods -n kb-system | (grep "kb-cloud-bootstrapper" | grep Completed || true) ; then
195+
if kubectl get pods -n kb-system | grep "kb-cloud-bootstrapper" | grep Completed ; then
196196
echo "KB Cloud Env is ready"
197197
check_status=1
198198
break
@@ -279,11 +279,11 @@ jobs:
279279
run: |
280280
sleep 10
281281
while true; do
282-
if kubectl get pods -n default | (grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Completed|Error" || true) ; then
282+
if kubectl get pods -n default | grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Completed|Error" ; then
283283
echo "Cloud E2E Test is Done"
284284
break
285285
fi
286-
if kubectl get pods -n default | (grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Running|Error" || true) ; then
286+
if kubectl get pods -n default | grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Running|Error" ; then
287287
kubectl logs -n default ${CLOUD_E2E_TEST_POD_NAME} --tail=5
288288
else
289289
echo "Waiting for Cloud E2E to be Running..."

.github/archive/workflows/cloud-e2e-with-k3s.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,11 @@ jobs:
284284
run: |
285285
sleep 10
286286
while true; do
287-
if kubectl get pods -n default | (grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Completed|Error" || true) ; then
287+
if kubectl get pods -n default | grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Completed|Error" ; then
288288
echo "Cloud E2E Test is Done"
289289
break
290290
fi
291-
if kubectl get pods -n default | (grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Running|Error" || true) ; then
291+
if kubectl get pods -n default | grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Running|Error" ; then
292292
kubectl logs -n default ${CLOUD_E2E_TEST_POD_NAME} --tail=5
293293
else
294294
echo "Waiting for Cloud E2E to be Running..."
@@ -410,7 +410,7 @@ jobs:
410410
sleep 10
411411
check_status=0
412412
for i in {1..200}; do
413-
if kubectl get pods -n kb-cloud | (grep "kb-cloud-installer" | grep Completed || true) ; then
413+
if kubectl get pods -n kb-cloud | grep "kb-cloud-installer" | grep Completed ; then
414414
echo "KB Cloud is ready"
415415
check_status=1
416416
break
@@ -473,7 +473,7 @@ jobs:
473473
sleep 10
474474
check_status=0
475475
for i in {1..200}; do
476-
if kubectl get pods -n kb-system | (grep "kb-cloud-bootstrapper" | grep Completed || true) ; then
476+
if kubectl get pods -n kb-system | grep "kb-cloud-bootstrapper" | grep Completed ; then
477477
echo "KB Cloud Env is ready"
478478
check_status=1
479479
break
@@ -609,7 +609,7 @@ jobs:
609609
sleep 10
610610
check_status=0
611611
for i in {1..200}; do
612-
if kubectl get pods -n kb-cloud | (grep "kb-cloud-installer" | grep Completed || true) ; then
612+
if kubectl get pods -n kb-cloud | grep "kb-cloud-installer" | grep Completed ; then
613613
echo "KB Cloud is ready"
614614
check_status=1
615615
break
@@ -662,7 +662,7 @@ jobs:
662662
sleep 10
663663
check_status=0
664664
for i in {1..200}; do
665-
if kubectl get pods -n kb-cloud | (grep "kb-cloud-installer" | grep Completed || true) ; then
665+
if kubectl get pods -n kb-cloud | grep "kb-cloud-installer" | grep Completed ; then
666666
echo "KB Cloud is ready"
667667
check_status=1
668668
break

.github/archive/workflows/cloud-e2e.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,11 @@ jobs:
340340
run: |
341341
sleep 10
342342
while true; do
343-
if kubectl get pods -n default | (grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Completed|Error" || true) ; then
343+
if kubectl get pods -n default | grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Completed|Error" ; then
344344
echo "Cloud E2E Test is Done"
345345
break
346346
fi
347-
if kubectl get pods -n default | (grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Running|Error" || true) ; then
347+
if kubectl get pods -n default | grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Running|Error" ; then
348348
kubectl logs -n default ${CLOUD_E2E_TEST_POD_NAME} --tail=5
349349
else
350350
echo "Waiting for Cloud E2E to be Running..."
@@ -660,7 +660,7 @@ jobs:
660660
sleep 10
661661
check_status=0
662662
for i in {1..200}; do
663-
if kubectl get pods -n kb-cloud | (grep "kb-cloud-installer" | grep Completed || true) ; then
663+
if kubectl get pods -n kb-cloud | grep "kb-cloud-installer" | grep Completed ; then
664664
echo "KB Cloud is ready"
665665
check_status=1
666666
break
@@ -734,7 +734,7 @@ jobs:
734734
sleep 10
735735
check_status=0
736736
for i in {1..200}; do
737-
if kubectl get pods -n kb-system | (grep "kb-cloud-bootstrapper" | grep Completed || true) ; then
737+
if kubectl get pods -n kb-system | grep "kb-cloud-bootstrapper" | grep Completed ; then
738738
echo "KB Cloud Env is ready"
739739
check_status=1
740740
break
@@ -888,7 +888,7 @@ jobs:
888888
sleep 10
889889
check_status=0
890890
for i in {1..200}; do
891-
if kubectl get pods -n kb-cloud | (grep "kb-cloud-installer" | grep Completed || true) ; then
891+
if kubectl get pods -n kb-cloud | grep "kb-cloud-installer" | grep Completed ; then
892892
echo "KB Cloud is ready"
893893
check_status=1
894894
break
@@ -950,7 +950,7 @@ jobs:
950950
sleep 10
951951
check_status=0
952952
for i in {1..200}; do
953-
if kubectl get pods -n kb-cloud | (grep "kb-cloud-installer" | grep Completed || true) ; then
953+
if kubectl get pods -n kb-cloud | grep "kb-cloud-installer" | grep Completed ; then
954954
echo "KB Cloud is ready"
955955
check_status=1
956956
break

.github/archive/workflows/test-cloud-k3d-self.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
sleep 10
125125
check_status=0
126126
for i in {1..200}; do
127-
if kubectl get pods -n kb-cloud | (grep "kb-cloud-installer" | grep Completed || true) ; then
127+
if kubectl get pods -n kb-cloud | grep "kb-cloud-installer" | grep Completed ; then
128128
echo "KB Cloud is ready"
129129
check_status=1
130130
break
@@ -196,7 +196,7 @@ jobs:
196196
sleep 10
197197
check_status=0
198198
for i in {1..200}; do
199-
if kubectl get pods -n kb-system | (grep "kb-cloud-bootstrapper" | grep Completed || true) ; then
199+
if kubectl get pods -n kb-system | grep "kb-cloud-bootstrapper" | grep Completed ; then
200200
echo "KB Cloud Env is ready"
201201
check_status=1
202202
break

.github/archive/workflows/test-cloud-k3d.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
sleep 10
129129
check_status=0
130130
for i in {1..200}; do
131-
if kubectl get pods -n kb-cloud | (grep "kb-cloud-installer" | grep Completed || true) ; then
131+
if kubectl get pods -n kb-cloud | grep "kb-cloud-installer" | grep Completed ; then
132132
echo "KB Cloud is ready"
133133
check_status=1
134134
break
@@ -200,7 +200,7 @@ jobs:
200200
sleep 10
201201
check_status=0
202202
for i in {1..200}; do
203-
if kubectl get pods -n kb-system | (grep "kb-cloud-bootstrapper" | grep Completed || true) ; then
203+
if kubectl get pods -n kb-system | grep "kb-cloud-bootstrapper" | grep Completed ; then
204204
echo "KB Cloud Env is ready"
205205
check_status=1
206206
break

.github/archive/workflows/test-cloud-upgrade-k3d-self.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ jobs:
173173
sleep 10
174174
check_status=0
175175
for i in {1..200}; do
176-
if kubectl get pods -n kb-cloud | (grep "kb-cloud-installer" | grep Completed || true) ; then
176+
if kubectl get pods -n kb-cloud | grep "kb-cloud-installer" | grep Completed ; then
177177
echo "KB Cloud is ready"
178178
check_status=1
179179
break
@@ -233,7 +233,7 @@ jobs:
233233
sleep 10
234234
check_status=0
235235
for i in {1..200}; do
236-
if kubectl get pods -n kb-cloud | (grep "kb-cloud-installer" | grep Completed || true) ; then
236+
if kubectl get pods -n kb-cloud | grep "kb-cloud-installer" | grep Completed ; then
237237
echo "KB Cloud is ready"
238238
check_status=1
239239
break

.github/archive/workflows/test-cloud-upgrade-k3d.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
sleep 10
171171
check_status=0
172172
for i in {1..200}; do
173-
if kubectl get pods -n kb-cloud | (grep "kb-cloud-installer" | grep Completed || true) ; then
173+
if kubectl get pods -n kb-cloud | grep "kb-cloud-installer" | grep Completed ; then
174174
echo "KB Cloud is ready"
175175
check_status=1
176176
break
@@ -230,7 +230,7 @@ jobs:
230230
sleep 10
231231
check_status=0
232232
for i in {1..200}; do
233-
if kubectl get pods -n kb-cloud | (grep "kb-cloud-installer" | grep Completed || true) ; then
233+
if kubectl get pods -n kb-cloud | grep "kb-cloud-installer" | grep Completed ; then
234234
echo "KB Cloud is ready"
235235
check_status=1
236236
break

.github/workflows/cloud-e2e-api.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ jobs:
232232
run: |
233233
sleep 10
234234
while true; do
235-
if kubectl get pods -n default | (grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Completed|Error" || true) ; then
235+
if kubectl get pods -n default | grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Completed|Error" ; then
236236
echo "Cloud E2E Test is Done"
237237
break
238238
fi
239-
if kubectl get pods -n default | (grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Running|Error" || true) ; then
239+
if kubectl get pods -n default | grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Running|Error" ; then
240240
kubectl logs -n default ${CLOUD_E2E_TEST_POD_NAME} --tail=5
241241
else
242242
echo "Waiting for Cloud E2E to be Running..."

.github/workflows/cloud-e2e-engine.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ jobs:
310310
set -o nounset
311311
sleep 2
312312
while true; do
313-
if kubectl get pods -n default | (grep "${CLOUD_E2E_CLEAR_POD_NAME}" | egrep "Completed|Error" || true) ; then
313+
if kubectl get pods -n default | grep "${CLOUD_E2E_CLEAR_POD_NAME}" | egrep "Completed|Error" ; then
314314
echo "Cloud E2E Clear is Done"
315315
316316
set +e
@@ -336,7 +336,7 @@ jobs:
336336
337337
break
338338
fi
339-
if kubectl get pods -n default | (grep "${CLOUD_E2E_CLEAR_POD_NAME}" | egrep "Running|Error" || true) ; then
339+
if kubectl get pods -n default | grep "${CLOUD_E2E_CLEAR_POD_NAME}" | egrep "Running|Error" ; then
340340
kubectl logs -n default ${CLOUD_E2E_CLEAR_POD_NAME} --tail=5
341341
else
342342
echo "Waiting for Cloud E2E Clear Pod to be Completed..."
@@ -495,11 +495,11 @@ jobs:
495495
set -o nounset
496496
sleep 10
497497
while true; do
498-
if kubectl get pods -n default | (grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Completed|Error" || true) ; then
498+
if kubectl get pods -n default | grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Completed|Error" ; then
499499
echo "Cloud E2E Test is Done"
500500
break
501501
fi
502-
if kubectl get pods -n default | (grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Running|Error" || true) ; then
502+
if kubectl get pods -n default | grep "${CLOUD_E2E_TEST_POD_NAME}" | egrep "Running|Error" ; then
503503
kubectl logs -n default ${CLOUD_E2E_TEST_POD_NAME} --tail=5
504504
else
505505
echo "Waiting for Cloud E2E to be Running..."

0 commit comments

Comments
 (0)