lwolf / kube-cleanup-operator

Kubernetes Operator to automatically delete completed Jobs and their Pods
MIT License
498 stars 109 forks source link

can't install helm chart by using absolute URL #82

Closed AshutoshNirkhe closed 2 years ago

AshutoshNirkhe commented 2 years ago

Hi @lwolf

I am able to fetch/install helm chart by adding the repository, followed by helm fetch like this,

$ helm repo add test https://charts.lwolf.org/
"test" has been added to your repositories
$ helm repo update
$ helm fetch test/kube-cleanup-operator --version 1.0.1

But if I try to do by using absolute URL (either the chart repo one or github project one), it doesn't work -

$ helm fetch https://charts.lwolf.org/kube-cleanup-operator-1.0.0.tar.gz
Error: no cached repo found. (try 'helm repo update'): open C:\Users\ASHUTO~1.NIR\AppData\Local\Temp\helm\repository\stable-index.yaml: The system cannot find the file specified.

$ helm fetch https://github.com/lwolf/kube-charts/kube-cleanup-operator-1.0.0.tar.gz
Error: no cached repo found. (try 'helm repo update'): open C:\Users\ASHUTO~1.NIR\AppData\Local\Temp\helm\repository\stable-index.yaml: The system cannot find the file specified.

I need absolute URL to work, as our automation depends on that. Am I missing something or the URL is incorrect ? Thanks for your help in advance!!

AshutoshNirkhe commented 2 years ago

In the end, it was .tgz and not .tar.gz, lol.
curl https://charts.lwolf.org/kube-cleanup-operator-1.0.0.tgz works. So below config shall work for an automation.

chart_repository = https://charts.lwolf.org
chart_name = kube-cleanup-operator
chart_version = 1.0.1