diff --git a/.github/workflows/kind-of-e2e.yml b/.github/workflows/kind-of-e2e.yml new file mode 100644 index 0000000000000..73b56d185113d --- /dev/null +++ b/.github/workflows/kind-of-e2e.yml @@ -0,0 +1,23 @@ +name: Create Cluster + +on: pull_request + +jobs: + create-cluster: + runs-on: ubuntu-latest + timeout-minutes: 300 + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} + + - name: Create k8s Kind Cluster + uses: helm/kind-action@v1.3.0 + + - name: Check + run: kubectl get nodes + + - name: Deploy stackrox + run: MAIN_IMAGE_TAG="latest" ./deploy/k8s/deploy-local.sh || kubectl -n stackrox get pods diff --git a/deploy/common/k8sbased.sh b/deploy/common/k8sbased.sh index e9c4b5d88c5bb..c835bec6f7ee6 100644 --- a/deploy/common/k8sbased.sh +++ b/deploy/common/k8sbased.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -x + function realpath { [[ -n "$1" ]] || return 0 python3 -c 'import os, sys; print(os.path.realpath(sys.argv[1]))' "$1" @@ -373,7 +375,7 @@ function launch_central { # On some systems there's a race condition when port-forward connects to central but its pod then gets deleted due # to ongoing modifications to the central deployment. This port-forward dies and the script hangs "Waiting for # Central to respond" until it times out. Waiting for rollout status should help not get into such situation. - rollout_wait_timeout="3m" + rollout_wait_timeout="30m" if [[ "${IS_RACE_BUILD:-}" == "true" ]]; then rollout_wait_timeout="9m" fi