Skip to content

fix: accept a package minor newer than the Helm Chart - #72

Closed
desaintmartin wants to merge 1 commit into
mainfrom
fix/check-major-version-only
Closed

desaintmartin wants to merge 1 commit into
mainfrom
fix/check-major-version-only

Conversation

@desaintmartin

@desaintmartin desaintmartin commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Summary

ensure_safe_run compares the package version with the Helm Chart appVersion (HELM_CHART_APP_VERSION). It compared major.minor, so every minor release of the package needed a new Helm Chart release first.

Chartreuse 7.1.0 refuses to start with the Helm Chart appVersion 7.0.0:

ValueError: Chartreuse's Helm Chart version '7.0.0' and the package's version '7.1.0' don't have the same 'major.minor' (['7', '0'] != ['7', '1']), ...

Rule

Helm Chart Package Result
7.0.0 7.1.0 OK: a minor release keeps the Helm Chart contract
7.1.0 7.0.2 Abort: the Helm Chart can use options that the package does not know
7.x 6.x or 8.x Abort: different major

A Helm Chart release can still force a minimum package version by raising its appVersion minor.

  • Minors compare as numbers (2.10 > 2.9). A missing minor (2, 2.) counts as 0.
  • Release as 7.1.1.

Tests

  • Unit tests: 111 passed.

The check compared major.minor, so every minor release of the package
needed a new Helm Chart appVersion first. Chartreuse 7.1.0 refuses to
start with the Helm Chart appVersion 7.0.0.

A minor release of the package keeps the Helm Chart contract. The check
now accepts the same major and a package minor greater or equal to the
Helm Chart minor. A newer Helm Chart minor still aborts, because the
Helm Chart can use options that the package does not know.
@desaintmartin
desaintmartin force-pushed the fix/check-major-version-only branch from dd7303f to a743f91 Compare October 20, 2026 05:51
@desaintmartin desaintmartin changed the title fix: check only the major version against the Helm Chart fix: accept a package minor newer than the Helm Chart Oct 20, 2026
@desaintmartin

Copy link
Copy Markdown
Member Author

Closed: the Helm Chart appVersion follows the package minor instead. The wiremind chart gets appVersion 7.1.0.

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