New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Support retrieving modules in private git repo through SSH #349
Conversation
Signed-off-by: motilayo <joshuaagboola@live.ca>
Signed-off-by: motilayo <joshuaagboola@live.ca>
Signed-off-by: motilayo <joshuaagboola@live.ca>
Signed-off-by: motilayo <joshuaagboola@live.ca>
Signed-off-by: motilayo <joshuaagboola@live.ca>
Codecov ReportBase: 79.31% // Head: 79.19% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #349 +/- ##
==========================================
- Coverage 79.31% 79.19% -0.13%
==========================================
Files 23 23
Lines 1750 1807 +57
==========================================
+ Hits 1388 1431 +43
- Misses 278 290 +12
- Partials 84 86 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Let's add some e2e test. Maybe this repo will helps: https://github.com/isomorphic-git/git-http-mock-server |
Signed-off-by: motilayo <joshuaagboola@live.ca>
Signed-off-by: motilayo <joshuaagboola@live.ca>
f0e4d98
to
724a8a6
Compare
…e-comments' & 'exported' lint errors Signed-off-by: motilayo <joshuaagboola@live.ca>
b93f19a
to
e64a353
Compare
1f2bae3
to
aacbae4
Compare
Signed-off-by: motilayo <joshuaagboola@live.ca>
Couldn't get https://github.com/isomorphic-git/git-http-mock-server to work. Looked into different options, did not find anything lightweight to use. Decided to go with creating a private git server in a pod, with a terraform module repo in that git.
|
@motilayo You did a very great job! The test methods is impressive. And can you explain some of the files which is not used in test? |
… for configuration state Signed-off-by: motilayo <joshuaagboola@live.ca>
Those files in |
Signed-off-by: motilayo <joshuaagboola@live.ca>
Signed-off-by: motilayo <joshuaagboola@live.ca>
…ls secret has issue Signed-off-by: motilayo <joshuaagboola@live.ca>
Signed-off-by: motilayo <joshuaagboola@live.ca>
Hi @chivalryq & @wonderflow , hoping for a review. I've made the suggested changes and added some tests. Let me know if there's any pending tasks for me to do. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after some code cleanup
Signed-off-by: motilayo <joshuaagboola@live.ca>
@motilayo Great Job! You can fix the conflicts within PR in vela's repo and we try to merge it into master. |
This is a PR to Support SSH for retrieving terraform modules in private git repo for this issue: #292
There is a corresponding PR in kubevela repo: kubevela/kubevela#5059
This change require a secret which hold the SSH private key and known hosts for the git repo:
known_hosts can be generated using
ssh-keyscan <git-url>