Flux 失败克隆存储库。

huangapple go评论56阅读模式
英文:

Flux failed to clone repository

问题

我试图按照这份文档更新我的Flux,链接在此:
https://fluxcd.io/flux/use-cases/azure/#flux-installation-for-azure-devops
我运行了这段代码,输入了我的密码,然后遇到了错误:

flux bootstrap git \
  --url=https://dev.azure.com/mycompany/mycomp/_git/myrepo \
  --branch=main \
  --password=${AZ_PAT_TOKEN} \
  --token-auth=true \
  --path=clusters/dev \
  --version=v0.35.0

错误

► 正在从Git仓库 "https://dev.azure.com/mycompany/mycomp/_git/myrepo" 克隆分支 "main"
✗ 克隆仓库失败:意外的客户端错误:意外的请求 "https://dev.azure.com/mycompany/mycomp/_git/myrepo/git-upload-pack" 状态码:400

仓库链接有效,分支和路径也是可用的。

英文:

Im trying to update my flux via bootstrap by following this documentation:
https://fluxcd.io/flux/use-cases/azure/#flux-installation-for-azure-devops
Im running this code, enter my password, and run in the error:

flux bootstrap git \
  --url=https://dev.azure.com/mycompany/mycomp/_git/myrepo \
  --branch=main \
  --password=${AZ_PAT_TOKEN} \
  --token-auth=true \
  --path=clusters/dev \
  --version=v0.35.0

Error

► cloning branch "main" from Git repository "https://dev.azure.com/mycompany/mycomp/_git/myrepo"
✗ failed to clone repository: unexpected client error: unexpected requesting "https://dev.azure.com/mycompany/mycomp/_git/myrepo/git-upload-pack" status code: 400

The repository link is working, the branch and path are available.

答案1

得分: 1

问题在于我的Flux CLI版本与集群不一致。

英文:

The problem was that my Flux CLI wasn't at the same version as the cluster.

huangapple
  • 本文由 发表于 2023年4月20日 00:49:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/76057018.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定