应用市场
不好意思,没有复现这个问题,我们的.cache目录下面会根据集群名称生成文件夹,缓存文件名称没有hash处理,也是根据仓库名称来生成的
例如: ~/.cache/helm/{clustername}/repository/{reponame}-charts.txt ~/.cache/helm/{clustername}/repository/{reponame}-index.yaml
Originally posted by @zhengkunwang223 in https://github.com/KubeOperator/KubePi/issues/109#issuecomment-1197726637
是 ~/.cache/helm/repository 目录,而不是带{clustername} 的目录
建议如此修改如下位置代码:
https://github.com/KubeOperator/KubePi/blob/master/pkg/util/helm/helm.go#L291-L296
Get.
原因参考: https://github.com/helm/helm/blob/v3.9.2/pkg/action/install.go#L718 https://github.com/helm/helm/blob/v3.9.2/pkg/repo/chartrepo.go#L233-L247 在client设置 RepoURL时,会重新获取charts.txt及 index.yaml,且依随机[]byte 并base64命名文件前缀
原因参考: https://github.com/helm/helm/blob/v3.9.2/pkg/action/install.go#L718 https://github.com/helm/helm/blob/v3.9.2/pkg/repo/chartrepo.go#L233-L247 在client设置 RepoURL时,会重新获取charts.txt及 index.yaml,且依随机[]byte 并base64命名文件前缀
您好 注释掉 client.RepoURL = re.URL 这行会导致获取不到hem chart 包
