Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Helm repository

Ruslan Shevchenko March 1, 2019

Hello

We need use bitbucket repository for helm repository.

So we have Private bitbucket repository. I created App Password and try to add Bitbuket repository to helm and got the following issue:

# helm repo add helmstore https://ruslanshevchenko:<app_password>@bitbucket.org/ruslanshevchenko/affiliates/raw/master/
Error: Looks like "https://ruslanshevchenko:<app_password>@bitbucket.org/ruslanshevchenko/affiliates/raw/master/" is not a valid chart repository or cannot be reached: Failed to fetch https://ruslanshevchenko:<app_password>@bitbucket.org/ruslanshevchenko/affiliates/raw/master/index.yaml : 403 Forbidden

 

Can you provide manual how to correct add Bitbucket repo to helm.

Thank you.

3 answers

0 votes
benjamin-carl July 6, 2019

Hi! @Ruslan Shevchenko any upate on this?
I'm also trying to get a private bitbucket repository working as Helm repository.

Currently it seems, that it is not possible.

The only way I've found to access raw files is via API:

curl -s -S --user {USER}:{APP-PASSWORD} -L -O https://api.bitbucket.org/2.0/repositories/{USER|ORGANISATION}/{REPOSITORY}/src/{BRANCH}/{PATH-AND-FILENAME}
Josef Schabasser October 18, 2019

Hi!

 

I think that's the correct way right now.

helm repo add {REPONAME} https://api.bitbucket.org/2.0/repositories/{USER|ORGANISATION}/{REPOSITORY}/src/master/ --username {USER} --password {APP-PASSWORD}

Above line is working fine for me. Just make sure that charts.yaml is in the root directory of your repository.

Like Sai Sarath Vadlapatla likes this
Jürgen_Weber November 24, 2019

what URL are you passing when you create the index? 

 

{code}
helm repo index --url <my repo URL}

{code}

Jürgen_Weber December 3, 2019

vote for the feature request!

https://jira.atlassian.com/browse/BCLOUD-19694

Josef Schabasser December 4, 2019

I just created a new repository. Then:

cd {PATH_TO_REPOSITORY}
mkdir charts
helm package {PATH_TO_CHART_1} --destination charts
helm package {PATH_TO_CHART_2} --destination charts
...
helm package {PATH_TO_CHART_N} --destination charts
helm repo index
git add charts index.yaml
git commit -m 'initial commit'
git push

EDIT: I don't use this anymore, I have switched over to Azure Container Registry. The helm part is still in preview, though.

Jürgen_Weber December 4, 2019

yeah, the making is the easy part.

Try using it. helm3 spits it back out.

Josef Schabasser December 9, 2019

Sorry, I never tried it with helm v3. Back then I used helm v2 because helm v3 was in beta state and it worked fine. As I mentioned before, I moved on to Azure Container Registry, which supports helm repositories in preview (helm v2 and v3, but no git shorthash in chart versions).

Sai Sarath Vadlapatla December 9, 2019

@Josef Schabasser 

helm repo add {REPONAME} https://api.bitbucket.org/2.0/repositories/{USER|ORGANISATION}/{REPOSITORY}/src/master/ --username {USER} --password {APP-PASSWORD}

Thanks for updating the solution for helm repo add via using an app password.
I was looking for a solution from the last week. Finally, I got it.


Like # people like this
0 votes
Ruslan Shevchenko March 2, 2019

But if I did git clone - all works fine.

0 votes
jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 2, 2019

403 implies that the application password you're using here doesn't have the correct access for that repository.

Ruslan Shevchenko March 3, 2019

But if I did git clone - all works fine.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events