-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
kustomize downloads helm charts and then reuses them when new version specified #5097
Comments
Currently helm downloads a helm chart every time it is used. There's an upstream helm "KEP" where they talk about using a content cache: https://github.com/helm/community/pull/185/files I think a simple fix here could be to download into a temporary directory and not cache it. That is consistent with the helm behaviour (until the helm KEP is approved / implemented):
Although we could implement our own mechanisms here for more efficient caching / verification (there is a digest in the index.yaml), I suggest that should instead be done in helm (first), we don't want to build something incompatible. |
Looks like there's even a PR that is a good starting point: #4999 , though I think we should first agree the behaviour (and maybe I should just be using the KRM function instead?) |
Also a duplicate of #3848 (issue by me) |
This issue has not been updated in over 1 year, and should be re-triaged. You can:
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/ /remove-triage accepted |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What happened?
I believe this issue has come up a few times, but I think there is a very concrete incorrect behaviour bug that I think we can & should fix. (I'm happy to work on fixing it if need be).
I was using the helmCharts support, with an upstream cilium chart, version 1.12.5. When I run kustomize, it automatically downloads the cilium chart into ./charts/cilium-1.12.5.tar.gz, and inflates it into ./charts/cilium.
I then change the chart version to 1.13.1, but kustomize continues to use ./charts/cilium, which is version 1.12.5
What did you expect to happen?
I would expect it to use the version I specified, given I didn't directly populate
./charts/cilium
(if I had created that directory myself, maybe the behaviour would be more understandable)How can we reproduce it (as minimally and precisely as possible)?
Run
kustomize build
, change the version, the old version is used.Expected output
No response
Actual output
No response
Kustomize version
main
Operating system
Linux
The text was updated successfully, but these errors were encountered: