Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/kind-of-e2e.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion deploy/common/k8sbased.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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
Expand Down