我正在运行argocd命令
argocd repo add https://gitlab.<mysite>.com/<repo>.git
我犯了错误,这是众所周知的错误。现在,为了避免这种情况,我在argocd kubernetes pod中设置了o set ~/..gitconfig,如下所示
[http "https://gitlab.<mysite>.com"]
proxy = http://www-proxy.<proxy-server>:8080如何将此配置传递给argocd命令?
我试图在argocd服务器端的~/..gitconfig中编写上述两行
此外,我还尝试了以下命令
argocd repo add https://gitlab.<mysite>/<repo>.git --config '[http "https://gitlab.<mysite>.com"] \n proxy = http://www-proxy.<proxy-server>:8080'
发布于 2021-06-17 21:43:20
在添加单个回购时,可以在添加此回购时指定它的代理。您需要使用:
argocd repo add https://gitlab.<mysite>/<repo>.git --proxy http://www-proxy.<proxy-server>:8080
https://stackoverflow.com/questions/66591331
复制相似问题