Skip to content

fix(chart): support GKE pre-release versions via kubeVersion '-0' - #1072

Merged
archlitchi merged 1 commit into
Project-HAMi:masterfrom
Nimbus318:fix/kubeversion-gke
May 23, 2025
Merged

fix(chart): support GKE pre-release versions via kubeVersion '-0'#1072
archlitchi merged 1 commit into
Project-HAMi:masterfrom
Nimbus318:fix/kubeversion-gke

Conversation

@Nimbus318

@Nimbus318 Nimbus318 commented May 22, 2025

Copy link
Copy Markdown
Contributor

What type of PR is this?
/kind bug

What this PR does / why we need it:
This PR fixes Helm installation failure on GKE clusters where Kubernetes versions include a pre-release suffix (e.g., v1.32.3-gke.1785003). Helm uses Masterminds/semver, which by spec skips pre-releases when comparing against a constraint like >= 1.18.0.

From the semver spec used by Helm:

“>=1.2.3 will skip pre-releases when looking at a list of releases, while >=1.2.3-0 will evaluate and find pre-releases.”

Therefore, changing the constraint to >= 1.18.0-0 ensures compatibility with Kubernetes versions that use pre-release identifiers, including those from GKE and other distributions.

Additionally, this PR updates the minimum supported Kubernetes version in the README from 1.16 to 1.18, reflecting the current chart constraint.

References:

Which issue(s) this PR fixes:
Fixes #1071

Special notes for your reviewer:

Does this PR introduce a user-facing change?:
no

@archlitchi

Copy link
Copy Markdown
Member

/lgtm

@github-actions github-actions Bot added the kind/bug Something isn't working label May 22, 2025
@codecov

codecov Bot commented May 22, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Flag Coverage Δ
unittests 61.08% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread charts/hami/Chart.yaml
…patibility with prerelease versions

- Updates `kubeVersion` from '>= 1.16.0' to '>= 1.18.0-0' to support GKE pre-release versions like v1.32.3-gke.*
- Updates README to reflect the minimum supported Kubernetes version

Signed-off-by: Yu Yin <yu.yin@dynamia.ai>
@archlitchi
archlitchi merged commit 3e48216 into Project-HAMi:master May 23, 2025
@fishman fishman mentioned this pull request Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Helm install fails on GKE due to kubeVersion mismatch with pre-release suffix

3 participants