Helm API endpoint does not contain all packages
Summary
If you have too many charts in the package registry the index.yaml /api/v4/projects/PROJECT_ID/packages/helm/stable/index.yaml doesn't contain all packages.
Steps to reproduce
- Have a project with a lot of charts, over 1000 (required due to some internal limitation)
- Visit the endpoint
- Observe some packages missing
Example Project
/
What is the current bug behavior?
The endpoint doesn't take into account new packages.
What is the expected correct behavior?
Recent packages are in the yaml.
Relevant logs and/or screenshots
We have a limit of 1000 helm charts to return when executing helm repo update.
helm repo update is downloading the chart index from the remote project (GitLab project). This chart index has all available charts in the project, but it will be capped to the 1000 charts limit.
That means if the project has more than 1000 charts, only the most recent 1000 ones will be fetched.
Output of checks
This bug happens on GitLab.com
Possible fixes
Patch release information for backports
If the bug fix needs to be backported in a patch release to a version under the maintenance policy, please follow the steps on the patch release runbook for GitLab engineers.
Refer to the internal "Release Information" dashboard for information about the next patch release, including the targeted versions, expected release date, and current status.
High-severity bug remediation
To remediate high-severity issues requiring an internal release for single-tenant SaaS instances, refer to the internal release process for engineers.