首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Jenkins-X 3 operator安装无法下载"jx3/jx-git-operator“

Jenkins-X 3 operator安装无法下载"jx3/jx-git-operator“
EN

Stack Overflow用户
提问于 2021-09-23 13:36:59
回答 1查看 59关注 0票数 1

尝试在普通Kubernetes集群上成功安装Jenkins X3。使用以下命令在AWS EKS vanilla集群中安装jenkins-x 3 operator:

代码语言:javascript
复制
jx admin operator --username myuser --token PAT -u https://gitlab.mydomain.com/jenkins-x-admin

输出将一些成功的查询返回到我的Gitlab存储库,然后失败,并显示错误输出:"' error : failed to download "jx3/jx-git-operator"'“

完整的控制台输出:

代码语言:javascript
复制
git clone URL is https://gitlab.gps-garage-pak.com/admins/jenkins-x-admin
now verifying we have a valid git username and token so that we can clone the git repository inside kubernetes...
git username is adgantt for URL https://gitlab.gps-garage-pak.com/admins/jenkins-x-admin and we have a valid password
running command:

/Users/me/.jx3/plugins/bin/helm-3.6.2 upgrade --install \
    --set url=https://gitlab.mydomain.com/jenkins-x-admin \
    --set username=myuser \
    --set password=**** --namespace jx-git-operator --create-namespace jxgo jx3/jx-git-operator

error: failed to run command /Users/me/.jx3/plugins/bin/helm-3.6.2 upgrade --install \
    --set url=https://gitlab.mydomain.com/jenkins-x-admin \
    --set username=myuser \
    --set password=**** --namespace jx-git-operator --create-namespace jxgo jx3/jx-git-operator: failed to run '/Users/me/.jx3/plugins/bin/helm-3.6.2 upgrade --install --set url=https://gitlab.mydomain.com/jenkins-x-admin --set username=myuser --set password=***** jx-git-operator --create-namespace jxgo jx3/jx-git-operator' command in directory '', output: 'Error: failed to download "jx3/jx-git-operator" (hint: running `helm repo update` may help)'
EN

回答 1

Stack Overflow用户

发布于 2021-09-23 14:54:18

您必须先将存储库添加到helm列表中

代码语言:javascript
复制
helm repo add jx3 https://storage.googleapis.com/jenkinsxio/charts

helm repo update

在运行时运行helm命令

代码语言:javascript
复制
helm upgrade --install \
    --set url=$GIT_URL \
    --set username=$GIT_USER \
    --set password=$GIT_TOKEN \
     jx-git-operator --create-namespace jxgo jx3/jx-git-operator

Undercover jx admin operator调用相同的helm命令和选项。

选项2

本地克隆存储库

代码语言:javascript
复制
git clone https://github.com/jenkins-x/jx-git-operator

进入文件夹内部

代码语言:javascript
复制
cd jx-git-operator/charts/jx-git-operator

现在,您可以在此处直接运行舵机

代码语言:javascript
复制
helm upgrade --install \
        --set url=$GIT_URL \
        --set username=$GIT_USER \
        --set password=$GIT_TOKEN \
         jx-git-operator --create-namespace jxgo ./ #this mean you are in existing directory
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69301127

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档