添加到 ACR 的 Helm 图表的索引 URL 是多少?

What's the index URL for Helm charts added to ACR?

我正在关注有关如何“将 Helm 图表推送和拉取到 Azure 容器注册表”的 this 指南。

所以我已经将图表推送到 ACR。我可以通过 Azure UI 和

看到它在那里
az acr repository show \
  --name mycontainerregistry \
  --repository helm/hello-world

是否有一个存储库 URL 可以用来配置其他人(在本例中为 Flux v2)以从中提取图表?我以为它可能是 https://mycontainerregistry.azurecr.io/helm/v1/repo/index.yaml,但它没有列出我推送的图表。

我需要做什么才能将我的图表添加到 index.yaml,或者我应该使用另一个 URL?

编辑

我刚刚意识到 https://mycontainerregistry.azurecr.io/helm/v1/repo/index.yaml 将显示通过 az acr helm push 命令推送的图表。所以也许 URL 是别的东西?

实际上,您可以使用命令helm repo add将Azure Container Registry 作为存储库添加到helm,然后您可以从ACR 中拉取图表。 ACR 中的所有图表名为 myacr.azurecr.io/helm/chartname,这意味着您将从 ACR 中提取图表。名称决定图表的来源。

例如,您使用此处的命令添加一个存储库:

helm repo add technosophos https://technosophos.github.io/tscharts

您可以像这样显示回购协议:

然后你可以从这个 repo 中提取图表:

你可以用 ACR 做这样的事情。 helm 将帮助您更新 repo 的索引。你不需要自己做。

我使用了以下命令并且有效:

helm repo add YOUR_ACR_NAME https://YOUR_ACR_NAME.azurecr.io/helm/v1/repo  --username YOUR_ACR_NAME --password YOUR_ACR_PASSWORD

结果将类似于:

"YOUR_ACR_NAME " has been added to your repositories

问题是,在此之后我仍然找不到我通过“az acr helm push”添加的所有 helm 图表。好难过