Skip to content

Commit a0f0d37

Browse files
ybettank8s-ci-robot
authored andcommitted
Retrying applying CRs in the e2e jobs.
The webhook services are not always available right after the deployments are ready. This is causing a race condition between the services being ready to get requests and the CRs applied to the cluster. By retrying to apply the CRs we can give the services the time they need to become ready. Signed-off-by: Yoni Bettan <[email protected]>
1 parent d68102f commit a0f0d37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci/prow/e2e-hub-spoke-incluster-build

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ kubectl wait --for=condition=Available -n ${OPERATOR_NAMESPACE} \
5959
kubectl label managedcluster minikube name=minikube
6060

6161
# Apply the ManagedClusterModule
62-
kubectl apply -f ci/managedclustermodule-kmm-ci-build-sign.yaml
62+
timeout 1m bash -c 'until kubectl apply -f ci/managedclustermodule-kmm-ci-build-sign.yaml; do sleep 3; done'
6363

6464
# Waiting for the manifestwork to be created
6565
timeout 1m bash -c 'until kubectl -n ${MINIKUBE} get manifestwork/mod-example; do sleep 1; done'

ci/prow/e2e-incluster-build

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ kubectl apply -f ci/secret_kmm-kmod-signing.yaml
3636
kubectl wait --for=condition=Available deployment/kmm-operator-controller deployment/kmm-operator-webhook -n kmm-operator-system
3737

3838
echo "Add an kmm-ci Module that contains a valid mapping..."
39-
kubectl apply -f ci/module-kmm-ci-build-sign.yaml
39+
timeout 1m bash -c 'until kubectl apply -f ci/module-kmm-ci-build-sign.yaml; do sleep 3; done'
4040

4141
echo "Check that the module gets loaded on the node..."
4242
timeout 10m bash -c 'until minikube ssh -- lsmod | grep kmm_ci_a; do sleep 3; done'

0 commit comments

Comments
 (0)