Skip to content

Comments

fix: ship plugin.yaml in Helm 3 format for cross-version compatibility#237

Merged
nerdeveloper merged 2 commits intomainfrom
fix/plugin-yaml-helm3-helm4-compat
Feb 9, 2026
Merged

fix: ship plugin.yaml in Helm 3 format for cross-version compatibility#237
nerdeveloper merged 2 commits intomainfrom
fix/plugin-yaml-helm3-helm4-compat

Conversation

@nerdeveloper
Copy link
Member

Summary

  • Ship plugin.yaml in Helm 3 (legacy) format so both Helm 3 and Helm 4 can parse it
  • Clean up testdata/plugin-helm4.yaml to be a pure Helm 4 V1 manifest (remove Helm 3 fields)
  • Clean up testdata/plugin-helm3.yaml (remove deprecated useTunnel)
  • Add plugin manifest compatibility tests that validate YAML against both Helm versions

Problem

The v0.11.0 plugin.yaml mixed Helm 3 and Helm 4 fields, breaking both versions:

How this works

  1. The shipped plugin.yaml uses Helm 3 (legacy) format — parseable by both Helm 3 and Helm 4
  2. Helm 4 recognizes it as a legacy manifest (no apiVersion) and uses non-strict parsing
  3. The install hook (scripts/install_plugin.sh) detects the Helm version and swaps to the appropriate manifest from testdata/
  4. New tests validate all manifests against both Helm 3's and Helm 4's actual parsing logic, preventing regressions

Fixes #234, fixes #235

Test plan

The v0.11.0 plugin.yaml mixed Helm 3 and Helm 4 fields, causing
unmarshal errors on both versions. Ship the default manifest in
Helm 3 format so the install hook can detect the Helm version and
swap to the appropriate manifest from testdata/.

Fixes #234, fixes #235
Validates that:
- plugin.yaml and testdata/plugin-helm3.yaml parse with Helm 3's strict unmarshaller
- testdata/plugin-helm4.yaml parses with Helm 4's strict V1 unmarshaller
- plugin.yaml uses legacy format (no apiVersion) for Helm 4 compatibility

These tests would have caught the v0.11.0 regression where
mixed Helm 3/4 fields broke both versions.
@nerdeveloper nerdeveloper merged commit 6f8c6c2 into main Feb 9, 2026
1 check passed
nerdeveloper added a commit that referenced this pull request Feb 9, 2026
Bump version to 0.11.1 and add CHANGELOG entry for the
plugin manifest compatibility fix (#234, #235, #237).
@nerdeveloper nerdeveloper mentioned this pull request Feb 9, 2026
@nerdeveloper nerdeveloper deleted the fix/plugin-yaml-helm3-helm4-compat branch February 9, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant