Skip to content

Commit 93ac39e

Browse files
committed
[FLINK-36513][ci] Introducing retry mechanism for kubectl apply cert-manager
1 parent d2c0173 commit 93ac39e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,9 @@ jobs:
9393
start_minikube
9494
- name: Install cert-manager
9595
run: |
96+
source e2e-tests/utils.sh
9697
kubectl get pods -A
97-
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.8.2/cert-manager.yaml
98+
retry_times 5 30 "kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.8.2/cert-manager.yaml" || exit 1
9899
kubectl -n cert-manager wait --all=true --for=condition=Available --timeout=300s deploy
99100
- name: Build image
100101
run: |
@@ -223,8 +224,9 @@ jobs:
223224
start_minikube
224225
- name: Install cert-manager
225226
run: |
227+
source e2e-tests/utils.sh
226228
kubectl get pods -A
227-
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.8.2/cert-manager.yaml
229+
retry_times 5 30 "kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.8.2/cert-manager.yaml" || exit 1
228230
kubectl -n cert-manager wait --all=true --for=condition=Available --timeout=300s deploy
229231
- name: Build image
230232
run: |

0 commit comments

Comments
 (0)