ipedrazas / drone-helm

Helm (Kubernetes) plugin for drone.io
MIT License
120 stars 90 forks source link

how to disable stable-repo-url: googleapis.com #68

Open vovovs opened 6 years ago

vovovs commented 6 years ago

I want to : helm --stable-repo-url http://192.168.3.3 ... reason: stable-repo-url kubernetes-charts.storage.googleapis.com not connection, in china.

======= drone log ========= ...... Creating /root/.helm Creating /root/.helm/repository Creating /root/.helm/repository/cache Creating /root/.helm/repository/local Creating /root/.helm/plugins Creating /root/.helm/starters Creating /root/.helm/cache/archive Creating /root/.helm/repository/repositories.yaml Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com Error: Looks like "https://kubernetes-charts.storage.googleapis.com" is not a valid chart repository or cannot be reached: Get https://kubernetes-charts.storage.googleapis.com/index.yaml: net/http: TLS handshake timeout Error running helm command: init

exit code 1

aruruka commented 5 years ago

I also found out the --stable-repo-url flag with using --upgrade doesn't work, my env is helm v2.14.0. Afterwards, I just use helm repo remove and add to replace the stable repo url. But my init process just passed without replacing the default stable repo url, and I found the cache of repo index had been updated normally. I also wanna know if there is a way to replace the stable repo url in the init step.