From c3d3989cdca404b503e9ad7d05ae9fdccb04c057 Mon Sep 17 00:00:00 2001 From: "hugh-hackman[bot]" <266376744+hugh-hackman[bot]@users.noreply.github.com> Date: Tue, 10 Mar 2026 23:50:37 +0000 Subject: [PATCH] ci: deploy polaris dashboard to E2E cluster (#34) Adds Helm-based Polaris dashboard deployment step to E2E workflow, fixing the long-standing E2E failure where Polaris was not accessible in the CI cluster. --- .github/workflows/e2e.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 9685c69..f65b99f 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -65,6 +65,24 @@ jobs: echo "::warning::Version mismatch — repo has $EXPECTED but Headlamp runs $DEPLOYED_VERSION. Tests may fail due to stale plugin." fi + - name: Deploy Polaris to CI cluster + run: | + helm repo add fairwinds-stable https://charts.fairwinds.com/stable + helm repo update + helm upgrade --install polaris fairwinds-stable/polaris \ + --namespace polaris --create-namespace \ + --set dashboard.enabled=true \ + --set webhook.enabled=false \ + --wait --timeout 5m + + - name: Apply RBAC + run: kubectl apply -f deployment/polaris-rbac.yaml + + - name: Wait for Polaris dashboard readiness + run: | + kubectl rollout status deployment/polaris-dashboard -n polaris --timeout=120s + kubectl wait --for=condition=ready pod -l app.kubernetes.io/name=polaris,app.kubernetes.io/component=dashboard -n polaris --timeout=120s + - name: Install Playwright browsers run: npx playwright install --with-deps chromium