英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论