Commit Graph

2 Commits

Author SHA1 Message Date
Gandalf the Greybeard a383d32176 fix: flatten dist/ contents into plugin root during init container extraction
The init container extracted the tarball preserving the dist/ subdirectory,
placing main.js at /plugins/polaris/dist/main.js instead of /plugins/polaris/main.js
where Headlamp expects it. Add cp -a dist/* . && rm -rf dist after extraction to
flatten the build output into the plugin root directory.

Fixes 6/16 E2E test failures (settings + badge navigation timeouts).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-16 10:51:51 +00:00
Gandalf the Greybeard 840d55efac refactor: replace kubectl exec/cp plugin deploy with ConfigMap + init container
Redesigns E2E plugin deployment to eliminate all kubectl exec/cp access to
Headlamp pods, per board policy. The new approach:

1. Packages built plugin as a tarball stored in a ConfigMap
2. Patches the Headlamp deployment with an init container that extracts
   the plugin into the static-plugins volume before Headlamp starts
3. Waits for rollout and verifies readiness

RBAC is reduced to configmaps (create/get/patch), deployments (get/patch),
replicasets and pods (get/list for rollout status) — no exec or cp needed.

Note: .github/workflows/e2e.yaml update requires workflows permission and
must be applied separately by a user with repo admin access.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-16 10:38:34 +00:00