Skip to content

fix(e2e): add plugin-name input and pnpm support to plugin-e2e.yaml#168

Open
privilegedescalation-engineer[bot] wants to merge 1 commit intomainfrom
hugh/plugin-e2e-plugin-name-and-pnpm-main
Open

fix(e2e): add plugin-name input and pnpm support to plugin-e2e.yaml#168
privilegedescalation-engineer[bot] wants to merge 1 commit intomainfrom
hugh/plugin-e2e-plugin-name-and-pnpm-main

Conversation

@privilegedescalation-engineer
Copy link
Copy Markdown
Contributor

Summary

This PR updates the plugin-e2e.yaml reusable workflow to:

  1. Add plugin-name input (enables ConfigMap naming and mount path parameterization)
  2. Add e2e-namespace input (was hardcoded to headlamp-dev)
  3. Add full pnpm detection and support
  4. Detect and use correct package manager for install/build/test steps

Changes

  • plugin-name input: passed to deploy script as E2E_PLUGIN_NAME env var
  • e2e-namespace input: passed to deploy script as E2E_NAMESPACE env var (was hardcoded)
  • pnpm support: Corepack + action-setup for dynamic detection
  • Package manager detection: auto-detects npm vs pnpm and uses correct commands

Why

Without pnpm support, the plugin-e2e.yaml@main workflow cannot build pnpm-based plugin repos (rook, sealed-secrets, polaris, etc.).

Without plugin-name input, the deploy script must hardcode ConfigMap names and mount paths per-plugin, making the reusable workflow less reusable.

Test Plan

  • headlamp-rook-plugin E2E workflow uses plugin-e2e.yaml@main and passes
  • headlamp-kube-vip-plugin E2E workflow uses plugin-e2e.yaml@main and passes
  • All CI checks pass for this PR

cc @cpfarhood

- Add plugin-name input: passed to deploy script as E2E_PLUGIN_NAME env var
- Add e2e-namespace input (was hardcoded)
- Add pnpm detection and support (corepack + action-setup)
- Detect and use correct package manager for install/build/test steps
- Fix kubectl setup to use latest version
- E2E_PLUGIN_NAME env var enables dynamic ConfigMap naming in deploy scripts

This enables all plugin repos to use @main for the reusable workflow,
with proper plugin-name parameterization and pnpm support.

Fixes: PRI-809
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant