diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml new file mode 100644 index 0000000..0363889 --- /dev/null +++ b/.github/workflows/e2e.yaml @@ -0,0 +1,23 @@ +name: E2E Tests + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: e2e-${{ github.repository }} + cancel-in-progress: false + +jobs: + e2e: + uses: privilegedescalation/.github/.github/workflows/plugin-e2e.yaml@main + with: + node-version: "22" + headlamp-version: v0.40.1 + e2e-namespace: headlamp-dev diff --git a/scripts/deploy-e2e-headlamp.sh b/scripts/deploy-e2e-headlamp.sh index 8f7a872..31bb566 100755 --- a/scripts/deploy-e2e-headlamp.sh +++ b/scripts/deploy-e2e-headlamp.sh @@ -97,7 +97,7 @@ spec: app.kubernetes.io/instance: ${E2E_RELEASE} spec: serviceAccountName: ${E2E_RELEASE} - automountServiceAccountToken: true + automountServiceAccountToken: false securityContext: {} containers: - name: headlamp @@ -159,6 +159,7 @@ spec: EOF echo "Waiting for rollout..." +sleep 2 kubectl rollout status "deployment/${E2E_RELEASE}" \ -n "$E2E_NAMESPACE" --timeout=120s