ElasticBox / elastickube

ElasticKube is an open source management platform for Kubernetes.

Home Page:https://elastickube.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add possibility to add private Git Chart Repository

dkapanidis opened this issue · comments

It would be nice to get the possibility to use a private git repository for Git Chart Repository field.

This probably means an ssh key field would be necessary to be added as a field on settings for accessing the chart.

On the git repository a deploy key could then be configured (github, bitbucket) for read-only access on that repository.

Following a bit the GitPython project, I managed to clone properly a private repo chart by doing the following:

  • Enter inside the elastickube-charts container of the elastic-server pod
  • Add the git private key content to the ~/.ssh/id_rsa file
  • Configure properly the file permissions (chmod go-rwx ~/.ssh/id_rsa)
  • Do a git clone of the project manually (not sure if necessary, but could be because it permanently added the RSA host key for the remote server)

After that I configured elastickube with the git private repo and it consumed it properly.

@EfrenRey @osanjuan can you guys take care of this?

Would indeed be great if I can use a private chart repository, preferably one that can run on my own cluster. Any news to report on this issue?

After resolving some proxy issues I can change Git Chart repo via Admin > Settings. See #127.