Has anyone mounted a private GitHub repository into a kubernetes pod volume?
What is the best way to achieve this? I thought of two possible ways:
I like the second better, but I couldn't figure which user is pulling the repository to puts the appropriate SSH configuration for it.
Any thoughts?
GitHub allows cloning repositories using an OAuth token in https URLs as such:
$ git clone https://$GH_TOKEN@github.com/owner/repo.git
see https://help.github.com/articles/creating-an-access-token-for-command-line-use/