{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes-sigs/kustomize/issues/585","repository_url":"https://api.github.com/repos/kubernetes-sigs/kustomize","labels_url":"https://api.github.com/repos/kubernetes-sigs/kustomize/issues/585/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes-sigs/kustomize/issues/585/comments","events_url":"https://api.github.com/repos/kubernetes-sigs/kustomize/issues/585/events","html_url":"https://github.com/kubernetes-sigs/kustomize/issues/585","id":385731563,"node_id":"MDU6SXNzdWUzODU3MzE1NjM=","number":585,"title":"Possible to use a (private) repo that's not on Github?","user":{"login":"aodj","id":1374905,"node_id":"MDQ6VXNlcjEzNzQ5MDU=","avatar_url":"https://avatars0.githubusercontent.com/u/1374905?v=4","gravatar_id":"","url":"https://api.github.com/users/aodj","html_url":"https://github.com/aodj","followers_url":"https://api.github.com/users/aodj/followers","following_url":"https://api.github.com/users/aodj/following{/other_user}","gists_url":"https://api.github.com/users/aodj/gists{/gist_id}","starred_url":"https://api.github.com/users/aodj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aodj/subscriptions","organizations_url":"https://api.github.com/users/aodj/orgs","repos_url":"https://api.github.com/users/aodj/repos","events_url":"https://api.github.com/users/aodj/events{/privacy}","received_events_url":"https://api.github.com/users/aodj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-29T13:16:55Z","updated_at":"2018-11-29T22:04:09Z","closed_at":null,"author_association":"NONE","body":"I've been trying to get a kustomize working against a private repo hosted on Bitbucket, but after defining it like so:\r\n\r\n```yaml\r\nbases:\r\n- git::bitbucket.org:org/rep.git//base/overlay/aws\r\n```\r\n\r\nI get the following exception:\r\n\r\n```\r\nError: loadResMapFromBasesAndResources: couldn't make ldr for git::bitbucket.org:org/repo.git//base/overlay/aws: error downloading 'bitbucket.org:org/repo.git': /usr/local/bin/git exited with 128: Cloning into '/var/folders/gl/tb8ktf4n0j532y_x4x_hbfmsyg9d2b/T/kustomize-372791287/repo'...\r\nalexander@bitbucket.org: Permission denied (publickey).\r\nfatal: Could not read from remote repository.\r\n\r\nPlease make sure you have the correct access rights\r\nand the repository exists.\r\n```\r\n\r\nI'm able to `git clone` this repo wihtout problem, and I don't know why the git cloning in kustomize is using the username of `alexander@bitbucket.org` .\r\n\r\nWhilst looking through the source for kustomize, here in the repo, I noticed that the code seems to only support git bases from github.com; is this the case? Is it possible to use private git repos as bases? The documentation seems to be nonexistent on this point, so I'm not sure where I'm supposed to be able to find information on this.\r\n\r\nThanks for your help on this matter."},"comment":{"url":"https://api.github.com/repos/kubernetes-sigs/kustomize/issues/comments/443010636","html_url":"https://github.com/kubernetes-sigs/kustomize/issues/585#issuecomment-443010636","issue_url":"https://api.github.com/repos/kubernetes-sigs/kustomize/issues/585","id":443010636,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzAxMDYzNg==","user":{"login":"aodj","id":1374905,"node_id":"MDQ6VXNlcjEzNzQ5MDU=","avatar_url":"https://avatars0.githubusercontent.com/u/1374905?v=4","gravatar_id":"","url":"https://api.github.com/users/aodj","html_url":"https://github.com/aodj","followers_url":"https://api.github.com/users/aodj/followers","following_url":"https://api.github.com/users/aodj/following{/other_user}","gists_url":"https://api.github.com/users/aodj/gists{/gist_id}","starred_url":"https://api.github.com/users/aodj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aodj/subscriptions","organizations_url":"https://api.github.com/users/aodj/orgs","repos_url":"https://api.github.com/users/aodj/repos","events_url":"https://api.github.com/users/aodj/events{/privacy}","received_events_url":"https://api.github.com/users/aodj/received_events","type":"User","site_admin":false},"created_at":"2018-11-29T22:04:09Z","updated_at":"2018-11-29T22:04:09Z","author_association":"NONE","body":"Yea, about that... The `simpleGitCloner` only seems to work with Github repos, which effectively rules out me running this against my private Bitbucket repo. \r\n\r\n[Relevant code snippet](https://github.com/kubernetes-sigs/kustomize/blob/master/pkg/loader/gitcloner.go#L68-L72):\r\n```go\r\ncmd := exec.Command(\r\n    gitProgram,\r\n    \"clone\",\r\n    \"https://github.com/\"+repo+\".git\",\r\n    checkoutDir)\r\n```"}}
{"actor":{"display_login":"aodj"}}