Skip to content

Commit

Permalink
chore(ci): Fix e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Blatt (external expert on behalf of DB Netz) <maximilian.blatt-extern@deutschebahn.com>
  • Loading branch information
MisterMX committed Feb 16, 2024
1 parent f759905 commit 5af3c3d
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions cluster/local/integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ echo "${PVC_YAML}" | "${KUBECTL}" create -f -
# install crossplane from stable channel
echo_step "installing crossplane from stable channel"
"${HELM3}" repo add crossplane-stable https://charts.crossplane.io/stable/
chart_version="$("${HELM3}" search repo crossplane-stable/crossplane | awk 'FNR == 2 {print $2}')"
chart_version="chart_version="1.14.5"
echo_info "using crossplane version ${chart_version}"
echo
# we replace empty dir with our PVC so that the /cache dir in the kind node
Expand Down Expand Up @@ -163,7 +163,24 @@ docker exec "${K8S_CLUSTER}-control-plane" ls -la /cache
echo_step "waiting for provider to be installed"
kubectl wait "provider.pkg.crossplane.io/${PACKAGE_NAME}" --for=condition=healthy --timeout=180s
if ! kubectl wait "provider.pkg.crossplane.io/${PACKAGE_NAME}" --for=condition=healthy --timeout=300s ; then
echo_warn "kubectl describe provider.pkg.crossplane.io/${PACKAGE_NAME}"
kubectl describe "provider.pkg.crossplane.io/${PACKAGE_NAME}"
echo_warn "kubectl describe providerrevision.pkg.crossplane.io"
kubectl describe providerrevision.pkg.crossplane.io
DEPLOY_NAMES=$(kubectl get deploy -n "${CROSSPLANE_NAMESPACE}" -oname | grep ${PACKAGE_NAME})
for DEPLOY in $DEPLOY_NAMES; do
echo_warn "kubectl describe -n ${CROSSPLANE_NAMESPACE} $DEPLOY"
kubectl describe -n "${CROSSPLANE_NAMESPACE}" "$DEPLOY"
done
POD_NAMES=$(kubectl get pods -n "${CROSSPLANE_NAMESPACE}" -oname | grep ${PACKAGE_NAME})
for POD in $POD_NAMES; do
echo_warn "kubectl describe -n ${CROSSPLANE_NAMESPACE} $POD"
kubectl describe -n "${CROSSPLANE_NAMESPACE}" "$POD"
done
fi
echo_step "uninstalling ${PROJECT_NAME}"
Expand Down

0 comments on commit 5af3c3d

Please sign in to comment.