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

Error: chart requires kubeVersion #3617

Closed
radhupr opened this issue Feb 4, 2025 · 8 comments
Closed

Error: chart requires kubeVersion #3617

radhupr opened this issue Feb 4, 2025 · 8 comments
Labels

Comments

@radhupr
Copy link

radhupr commented Feb 4, 2025

Bug description

I'm using kustomization.yaml as below

helmCharts:
  - name: jupyterhub
    repo: https://hub.jupyter.org/helm-chart/
    version: 4.0.0
    releaseName: jupyterhub
    valuesFile: values.yaml

It gives me Error: chart requires kubeVersion: >=1.28.0-0 which is incompatible with Kubernetes v1.26.0 even though I have the target cluster in version 1.30.0

How to reproduce

Run kustomize build --enable-helm . command against the file mentioned above

Expected behaviour

template files created

Actual behaviour


Error: chart requires kubeVersion: >=1.28.0-0 which is incompatible with Kubernetes v1.26.0

Use --debug flag to render out invalid YAML
: unable to run: 'helm template jupyterhub /Users/radhika.p.r/Documents/Repositories/addons/jupyterlab/charts/jupyterhub -f /var/folders/zl/rpsymzps7mb_tccmy64kyjd40000gq/T/kustomize-helm-3812156821/jupyterhub-kustomize-values.yaml' with env=[HELM_CONFIG_HOME=/var/folders/zl/rpsymzps7mb_tccmy64kyjd40000gq/T/kustomize-helm-3812156821/helm HELM_CACHE_HOME=/var/folders/zl/rpsymzps7mb_tccmy64kyjd40000gq/T/kustomize-helm-3812156821/helm/.cache HELM_DATA_HOME=/var/folders/zl/rpsymzps7mb_tccmy64kyjd40000gq/T/kustomize-helm-3812156821/helm/.data] (is 'helm' installed?)
@radhupr radhupr added the bug label Feb 4, 2025
@manics
Copy link
Member

manics commented Feb 4, 2025

What happens if you run helm install (or helm upgrade), without kustomize?

@radhupr
Copy link
Author

radhupr commented Feb 4, 2025

Helm command works as expected
helm upgrade --cleanup-on-fail --install jupyterhub jupyterhub/jupyterhub --namespace jupyterhub --version=4.0.0 --values values.yaml

@consideRatio
Copy link
Member

Whatever renders the helm charta believes it renders for k8s 1.26, so maybe that needs to be specified or you need to update that software? Kustomize software version or conff seems reasonable to look deeper at to resolve this.

@manics manics added support and removed bug labels Feb 4, 2025
Copy link

github-actions bot commented Feb 4, 2025

Hi there @radhupr 👋!

I closed this issue because it was labelled as a support question.

Please help us organize discussion by posting this on the https://discourse.jupyter.org/ forum. If it's your first time posting
please read https://discourse.jupyter.org/t/getting-good-answers-to-your-questions/1825.
The more information you provide the more likely we can help you.

Our goal is to sustain a positive experience for both users and developers. We use GitHub issues for specific discussions related to changing a repository's content, and let the forum be where we can more generally help and inspire each other.

Thanks you for being an active member of our community! ❤️

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 4, 2025
@radhupr
Copy link
Author

radhupr commented Feb 4, 2025

I just did a upgrade of kustomize to v5.6.0 and it still the same. Am I the only one facing this then?

@manics
Copy link
Member

manics commented Feb 4, 2025

Z2JH just uses standard Helm chart.yaml metadata:
https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/4.1.0/jupyterhub/Chart.yaml#L11

If it's not working for you try asking on a Kustomize help forum.

@radhupr
Copy link
Author

radhupr commented Feb 6, 2025

addressed by kubeVersion parameter in kustomization.yaml

@consideRatio
Copy link
Member

Thank you for following up for anyone else in the future finding this @radhupr!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants