我使用“快速设置”在 Jfrog Artifactory 中创建了一个 Helm 存储库。
然后使用 Jfrog helm 二进制文件添加虚拟“helm”存储库:
我能够将自定义图表添加到虚拟仓库,安装它们但无法从 helm-remote(即稳定)仓库安装图表:
当我尝试访问任何此类图表时,helm 会抛出错误:
在 Artifactory web ui 上,helm virtual repo 列出了所有远程图表,但我无法安装它们:
我已经多次完成“helm repo update”。并且还删除了 ~/.helm 文件夹和“init”。尽管如此,我还是被同样的问题所困扰。
我在 Artifactory 系统日志中看到以下错误重复了几次:
2018-02-28 09:18:34,266 [art-exec-2] [ERROR] (o.a.a.h.r.m.HelmVirtualMerger:194) -
Couldn't read index file in remote repository helm-remote :
(was com.github.zafarkhaja.semver.UnexpectedCharacterException)
(through reference chain: org.jfrog.repomd.helm.model.HelmIndexYamlMetadata["entries"]->java.util.LinkedHashMap["grafana"]->java.util.TreeSet[3])
这里可能出现的问题是什么?感谢您的帮助。
最佳答案
tl;博士 - 此问题已在 Artifactory 5.9.0 中修复 - https://www.jfrog.com/jira/browse/RTFACT-15668
问题是 Artifactory 在 5.8 版中不支持带有非 SemVer 2 的 Helm 图表,只有在 5.8 版发布后,一个非 SemVer2 才被添加到稳定图表库中。 (格拉法纳 0.6) 此问题已在 5.9.0 中修复,您应该可以正确解析远程图表。
查看 Artifactory 发行说明 - https://www.jfrog.com/confluence/display/RTF/Release+Notes#ReleaseNotes-Artifactory5.9
关于artifactory - 无法在 Jfrog Artifactory 中使用虚拟 helm 存储库安装远程图表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49026206/