0

我的 JFrog 帐户中有 3 个 helm 存储库:

  • helm-local - 用于存储私有 helm 图表
  • helm-remote - 用于代理公共图表
  • helm - 虚拟一个,将两者结合在一起

我像这样配置我的 helm 客户端:helm repo add %reponame% https://%name%.jfrog.io/artifactory/helm --username %username% --password %password%因为它在https://www.jfrog.com/confluence/display/RTF6X/Helm+Chart+Repositories中有所描述。然后我做helm repo update

但是当我尝试这样做时helm pull %reponame%/%chartname%,它返回 404

Error: failed to fetch https://%name%.jfrog.io/helm-local/%chartname%-%chartversion%.tgz : 404 Not Found
helm.go:88: [debug] failed to fetch https://%name%.jfrog.io/helm-local/%chartname%-%chartversion%.tgz : 404 Not Found
helm.sh/helm/v3/pkg/getter.(*HTTPGetter).get
        helm.sh/helm/v3/pkg/getter/httpgetter.go:90
helm.sh/helm/v3/pkg/getter.(*HTTPGetter).Get
        helm.sh/helm/v3/pkg/getter/httpgetter.go:42
helm.sh/helm/v3/pkg/downloader.(*ChartDownloader).DownloadTo
        helm.sh/helm/v3/pkg/downloader/chart_downloader.go:99
helm.sh/helm/v3/pkg/action.(*Pull).Run
        helm.sh/helm/v3/pkg/action/pull.go:129
main.newPullCmd.func2
        helm.sh/helm/v3/cmd/helm/pull.go:75
github.com/spf13/cobra.(*Command).execute
        github.com/spf13/cobra@v1.1.3/command.go:852
github.com/spf13/cobra.(*Command).ExecuteC
        github.com/spf13/cobra@v1.1.3/command.go:960
github.com/spf13/cobra.(*Command).Execute
        github.com/spf13/cobra@v1.1.3/command.go:897
main.main
        helm.sh/helm/v3/cmd/helm/helm.go:87
runtime.main
        runtime/proc.go:225
runtime.goexit
        runtime/asm_amd64.s:1371

它似乎在获取索引,并获取最新版本的图表,但无法获取正确的下载 URL。我究竟做错了什么?

4

1 回答 1

1

我看到你正在尝试直接从 helm-local 拉取,你可以使用 helm virtual 并尝试拉取吗?另外,您可以在虚拟仓库上执行 zap 缓存并重新计算本地仓库上的索引并测试拉取吗?

于 2021-08-12T04:40:05.650 回答