ChristofferNissen / helmper

Import Helm Charts to OCI registries, optionally with vulnerability patching
https://christoffernissen.github.io/helmper/
Apache License 2.0
143 stars 7 forks source link

Unable to pull the chart from oci registry #121

Open bharathv195 opened 1 week ago

bharathv195 commented 1 week ago

Unable to pull the helm chart while trying to pull from the oci registry which has the repo link like "oci://ghcr.io/kube-logging/helm-charts/logging-operator" . And that helm chart does not have any repo name. we are getting the below error.

"ERROR","msg":"could not find protocol handler for: "}

ChristofferNissen commented 1 week ago

Can you share your config.yaml file?

bharathv195 commented 6 days ago
k8s_version: 1.27.9
import:
  enabled: true
charts:
- name: ${HELM_CHART}
  version: ${REPO_VERSION}
  valuesFilePath: /workspace/in/values/prometheus/values.yaml # (Optional)
  repo:
    name: ${REPO}
    url: ${THIRDPARTY_URL}
registries:
- name: registry
  url: ${REGISTRY_URL}
  insecure: false
  plainHTTP: false

Hi Nissen, this is the config file we are using

ChristofferNissen commented 6 days ago

Does your repo url also contain the chart name? Can you try without?

If that works, I'll add a bug fix to automatically remove the chart name from the url

bharathv195 commented 6 days ago

I have tried with the both options like repo url containing chart name and without chart name. Both didn't work

bharathv195 commented 2 days ago

and some images are not pushed to private registries while chart is getting pushed. EX: https://artifacthub.io/packages/helm/stakater/reloader/1.0.72?modal=install If we are pushing this Helm Chart, chart is getting pushed but not the docker image. Can you also please look into this?