Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix kubeVersion in Chart.yaml to support EKS and other 'non-standard' K8S versions #88

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

opalmer
Copy link
Contributor

@opalmer opalmer commented Sep 23, 2024

Currently kubeVersion is only allowing standard semver compatible versions like v1.29.11 for example. In many cases however, such as when running on EKS, you'll have a version like v1.28.5-eks-5e0fdde which when run with helm template --validate produces an error:

$ helm template athens athens/athens-proxy --version ~0.14.0 --namespace athens --values values.yaml --validate --is-upgrade
Error: chart requires kubeVersion: >= 1.19 which is incompatible with Kubernetes v1.28.5-eks-5e0fdde

This change should fix the issue by opening up the version constraint slightly to support 'pre-release' versions as suggested here:

… versions

Currently `kubeVersion` is only allowing standard semver compatible versions like `v1.29.11` for example. In many cases however, such as when running on EKS, you'll have a version like `v1.28.5-eks-5e0fdde` which when run with `helm template --validate` produces an error:

```
$ helm template athens athens/athens-proxy --version ~0.14.0 --namespace athens --values values.yaml --validate --is-upgrade
Error: chart requires kubeVersion: >= 1.19 which is incompatible with Kubernetes v1.28.5-eks-5e0fdde
```

This change should fix the issue by opening up the version constraint slightly to support 'pre-release' versions as suggested here:
- helm/helm#10375 (comment) (suggested change)
- helm/helm#10375 (comment) (EKS's response for the curious)
- https://helm.sh/docs/chart_template_guide/function_list/#working-with-prerelease-versions
@opalmer opalmer requested a review from a team as a code owner September 23, 2024 17:32
Copy link
Member

@DrPsychick DrPsychick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and thank you for the detailed report with references!

@DrPsychick DrPsychick merged commit d66ea6f into gomods:main Sep 24, 2024
1 check passed
@opalmer
Copy link
Contributor Author

opalmer commented Sep 24, 2024

You're welcome! Yeah that was a bit of a weird one. I guess on the one hand it's technically correct to ignore pre-release versions since that's how semver works but almost every hosted version of K8S that I know of uses a version scheme like <major>.<minor>.<micro>-<platform>-<hash> or something similar.

Any estimates on when a 0.14.1 release will be cut?

@DrPsychick
Copy link
Member

Hey @opalmer , I intend to do a release once the two small PRs are reviewed and merged - I expect this week.

@opalmer
Copy link
Contributor Author

opalmer commented Sep 25, 2024 via email

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.

2 participants