-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Right now, helm_import_repository supports three different use cases:
- Downloading a chart from the specified HTTP URL
- Finding a chart in a HTTP repository
- Note that
index.yamlmay provide aoci://URL here
- Note that
- Downloading a chart from an OCI registry
Two issues discovered here:
-
No support for specifying by digest instead of version tag for OCI URLs:
oci://registry-1.docker.io/bitnamicharts/grafana@sha256:015f66a231a809557ab368d903f6762ba31ba2f7b3d0f890445be6e8f213cff1This is not valid in
helmthough,helmrequires specifying tag in the URL or setting the--versionflag. -
Can't always determine version from URL:
aws-cluster-autoscaler-1.2.3-rc.tgzis a possible chart package file name (Ref: https://helm.sh/docs/chart_best_practices/conventions/#chart-names), but there's no clear way to separate the version (1.2.3-rc) from the name ofaws-cluster-autoscaler.
I propose splitting helm_import_repository into three different rules:
helm_import_urlto import a chart from a HTTP URLhelm_import_repositoryto import a chart from a HTTP repository by finding it inindex.yamlhelm_import_registryto import a chart from an OCI registry.
Splitting into separate rules will make it easier to manage the code and avoid the issues mentioned earlier.
Unfortunately, this would be a breaking change for current users. @abrisco, thoughts?