The Wayback Machine - https://web.archive.org/web/20200710034852/https://github.com/jenkins-x/jx/issues/7052
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the CHART REPOSITY to use Nexus HELM REPO error in step helm release #7052

Open
mcabrito opened this issue Apr 15, 2020 · 7 comments
Open

Comments

@mcabrito
Copy link

@mcabrito mcabrito commented Apr 15, 2020

Summary

I’m trying to use a Chart Repository by external Nexus, but I’d a problem in pipeline when I’m using the command:

jx step helm release

When this command do the upload chart file, my $CHART_REPOSITORY is changing and including the /api/charts

+ jx step helm release --verbose
DEBUG: Using helmBinary helm with feature flag: template-mode
DEBUG: Initialising Helm 'init --client-only'
DEBUG: getting vault name for namespace jx
DEBUG: system vault name from config 
DEBUG: Vault name generated: 
Adding missing Helm repo: storage.googleapis.com https://storage.googleapis.com/chartmuseum.jenkins-x.io
Successfully added Helm repository storage.googleapis.com.
DEBUG: getting vault name for namespace jx
DEBUG: system vault name from config 
DEBUG: Vault name generated: 
Adding missing Helm repo: <nexus-repo-helm> https://<nexus-repo-helm-URL>/repository/repo-helm
Successfully added Helm repository element.basis.com.br.
DEBUG: getting vault name for namespace jx
DEBUG: system vault name from config 
DEBUG: Vault name generated: 
Adding missing Helm repo: <nexus-repo-helm>-0 https://<nexus-repo-helm-URL>/repository/repo2-helm
Successfully added Helm repository <nexus-repo-helm>-0.
Running helm dependency build in .
Hang tight while we grab the latest from your chart repositories...
...Unable to get an update from the "local" chart repository (http://127.0.0.1:8879/charts):
	Get http://127.0.0.1:8879/charts/index.yaml: dial tcp 127.0.0.1:8879: connect: connection refused
...Successfully got an update from the "<nexus-repo-helm>-0" chart repository
...Successfully got an update from the "<nexus-repo-helm>" chart repository
...Successfully got an update from the "stable" chart repository
...Successfully got an update from the "storage.googleapis.com" chart repository
Update Complete.
Saving 1 charts
Downloading common from repo https://<nexus-repo-helm-URL>/repository/repo-helm/
Deleting outdated charts
Uploading chart file app-packege-0.0.89-dev.tgz to https://<nexus-repo-helm-URL>/repository/repo-helm/api/charts
Received 404 response

In my Nexus repo helm doesn’t have the api/charts.

We fount on the step_helm_release.go this input code:

u := util.UrlJoin(chartRepo, "/api/charts")

step_helm_release.go line

**How we could use the Nexus to all Helm Repo for upload or download charts?

Is there a way to use my local mirror completely?**

Steps to reproduce the behavior

Create a Nexus Helm Repo and use as a chat_repository

CHARTMUSEUM_CREDS = credentials(‘jenkins-x-chartmuseum’)
CHART_REPOSITORY = ‘https://<nexus-repo-helm-URL>/repository/repo-helm/’

Jx version

The output of jx version is:

NAME               VERSION
jx                 2.0.1268
jenkins x platform 2.0.2120
Kubernetes cluster v1.15.9
kubectl            v1.17.0
helm client        2.9.0
git                2.16.6
Operating System   "CentOS Linux release 7.7.1908 (Core)

Jenkins type

  • Classic Jenkins
  • Serverless Jenkins X Pipelines (Tekton + Prow)

Kubernetes cluster

rke 2

Operating system / Environment

Linux

@reison007
Copy link

@reison007 reison007 commented Apr 16, 2020

Having the same issue here.

@sladyn98
Copy link

@sladyn98 sladyn98 commented Apr 30, 2020

So If I understand correctly Nexus repo helm doesn’t have the api/charts, and we would like to add an option to use local mirrors so that the charts can be picked up ?
CC @deanesmith @mcabrito @reison007

@mcabrito
Copy link
Author

@mcabrito mcabrito commented Apr 30, 2020

No!
We would like to have an option to use an external or local repo like Nexus repo helm or differents repos. Not block just a repo that use api/charts.

@Tazminia
Copy link

@Tazminia Tazminia commented May 25, 2020

can't we just use the plain url and leave it up to administrator and users to configure the url, including or excluding the api/charts part ?

@deanesmith
Copy link
Member

@deanesmith deanesmith commented May 27, 2020

The ongoing strategy for JX provisioning is to divest in resource creation/management in favor of bring-your-own, but with improved documentation. Nexus will be part of this effort and we welcome contributions/discussions to help determine the best way to go about it.

@sladyn98
Copy link

@sladyn98 sladyn98 commented Jun 8, 2020

@deanesmith I would love to contribute, could you guide me a bit more on how I can get involved ?

@deanesmith
Copy link
Member

@deanesmith deanesmith commented Jun 9, 2020

Hi @sladyn98, based on the feedback here a step in the right direction would be to allow for the ability to have an option to be more flexible with the Nexus chart repo URL but without breaking the current happy path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.