refactor: remove repositories list from OCI helm remote; use single-chart base_url per remote #41
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The current OCI helm remote implementation requires a
repositorieslist in the remote config:This is wrong. A remote should represent one upstream backend. Aggregating multiple charts in a single remote duplicates the job of virtuals.
Desired design
One remote = one OCI chart repository (full path in
base_url):To combine multiple OCI charts, use a virtual (same as HTTP remotes).
Required changes
repositorieslist fromremote/oci_helm.pybuild_index_yamlshould derive the chart name from the last path component of the OCI repo (or from the Chart.yamlnamefield in the config blob)fetch_chart_tgzsimilarly needs norepositoriesparameter — the repo path is fully encoded inbase_urlOciRemoteConfig,OciManifest,OciChartVersionEntry) instead of passing rawdicteverywhereexamples/to use the single-chart-per-remote form