Skip to content
This repository has been archived by the owner on Jul 22, 2019. It is now read-only.

Feature Request: private helm repo #27

Open
StevenACoffman opened this issue May 11, 2018 · 1 comment
Open

Feature Request: private helm repo #27

StevenACoffman opened this issue May 11, 2018 · 1 comment

Comments

@StevenACoffman
Copy link

I would love to be able to use this helm-crd for Helm Private Repository using private GitHub repositories.

This is what we currently do:
Helm Private Repository using private GitHub repositories.

Steps:

  1. Create a private GitHub repository named private-helm-registry or any.

  2. Place your Raw Helm Charts.

  3. Create a charts folder and place index.yaml and packaged charts in .tgz format inside this folder.

  4. Create a GitHub Personal Access Token with read-only access.

  5. Add your Repository to helm using the following command:

     $ helm repo add helm-registry 'https://<git_hub_personal_access_token>@raw.githubusercontent.com/myGitHubAccountName/private-helm-registry/master/charts/'
     "helm-registry" has been added to your repositories
    

Note:

    1. Enclose the Url with single quotes ' '.
    2. The trailing / is mandatory.
  1. To add development or other branches as helm repository, use branch name:

     $ helm repo add helm-registry-dev 'https://<git_hub_personal_access_token>@raw.githubusercontent.com/myGitHubAccountName/private-helm-registry/<branch>/charts/'
     "helm-registry-dev" has been added to your repositories
    

Explore more at: Using a private github repo as helm chart repo.

@devdattakulkarni
Copy link

devdattakulkarni commented Jun 20, 2018

+1

Curious to know what error you get when using the https url, with personal access token embedded in it, as repoURL when creating a HelmRelease instance?

I have not tried above steps but it seems like given a valid token (with appropriate permissions) the https urls should work, no?

On a related note I tried S3 but helm client does not recognize S3 protocol. So I had to convert my bucket for Static Web hosting. I also had to modify index.yaml as it was referring to s3 url for the chart when I had initially pushed it using helm s3 plugin. The solution was to upload the tgz of my chart manually and then uploading new version of index.yaml with the https url for the chart.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants