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

Proposal: add chart source repository to the stored chart information in kubernetes #12943

Open
bh-tt opened this issue Apr 12, 2024 · 0 comments

Comments

@bh-tt
Copy link

bh-tt commented Apr 12, 2024

We migrated to OCI registries for helm recently, and one important question that remains is how to check for updates. Our current method involves adding a list of all (helm) registries we use and then trying to find a helm release name in one. We can likely do something similar for OCI registries, but this method has several issues:

  • naming conflicts happen occasionally between registries, causing the check to return the wrong items
  • it is quite slow and uses a lot of cpu, even for helm registries with all information locally stored after a helm repo update. I expect OCI repository will be even slower

In essence you need to know how a chart was installed in order to query these updates more effectively. I'd like to ask for this information to be added to the response from helm list -o json|yaml, which means it likely needs to be added to the information helm stores as part of a release.

I understand this is not possible for every type of chart (e.g. manually downloaded), but it should be possible to add this information when installing from a repository (both OCI and helm)? It might be as simply as adding the 'repository' key to these results.

Example current output of helm list. From this result its not possible to find some origin of the chart, and if you look at artifacthub there are >100 results for the name cert-manager:

$ helm list -n it -o yaml
- app_version: v1.14.4
  chart: cert-manager-v1.14.4
  name: cert-manager
  namespace: it
  revision: "7"
  status: deployed
  updated: 2024-03-11 09:07:40.204840481 +0100 CET
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

No branches or pull requests

1 participant