-
Notifications
You must be signed in to change notification settings - Fork 35
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
adding support for public and private git providers #160
Conversation
Signed-off-by: Michael Hoang <[email protected]>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #160 +/- ##
==========================================
- Coverage 61.28% 59.25% -2.03%
==========================================
Files 37 40 +3
Lines 4373 4926 +553
==========================================
+ Hits 2680 2919 +239
- Misses 1531 1832 +301
- Partials 162 175 +13
☔ View full report in Codecov by Sentry. |
Signed-off-by: Michael Hoang <[email protected]>
Signed-off-by: Michael Hoang <[email protected]>
Signed-off-by: Michael Hoang <[email protected]>
Signed-off-by: Michael Hoang <[email protected]>
af566e9
to
ab576f5
Compare
Signed-off-by: Michael Hoang <[email protected]>
Signed-off-by: Michael Hoang <[email protected]>
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.
Can you update the license headers on all modified files to the current year?
Signed-off-by: Michael Hoang <[email protected]>
2f73520
to
913dba5
Compare
Signed-off-by: Michael Hoang <[email protected]>
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
@mike-hoang can you also add the manual test case coverage in the PR description under the How to test changes
section? That way, we have it on record what additional coverage and validation was done outside of the unit tests
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kim-tsao, mike-hoang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Michael Hoang [email protected]
What does this PR do?:
Adds ability to parse Github, GitLab, and Bitbucket urls along with updating
util.CloneGitRepo
andutil.DownloadInMemory
to support private repos with personal auth tokens.Which issue(s) this PR fixes:
fixes devfile/api#984
PR acceptance criteria:
Testing and documentation do not need to be complete in order for this PR to be approved. We just need to ensure tracking issues are opened.
Unit/Functional tests
QE Integration test
Documentation
Client Impact
Gosec scans
How to test changes / Special notes to the reviewer:
To set up manual testing:
The private repo contains:
The urls can be both a raw file path or a link to the devfile:
Github
https://github.com/mike-hoang/private-repo-example/blob/main/devfile.yaml
https://raw.githubusercontent.com/mike-hoang/private-repo-example/main/devfile.yaml
Gitlab
https://gitlab.com/mike-hoang/private-testing-repo/-/blob/main/devfile.yaml
https://gitlab.com/mike-hoang/private-testing-repo/-/raw/main/devfile.yaml
Bitbucket
https://bitbucket.org/mike-hoang/private-repo-example/src/main/devfile.yaml
https://bitbucket.org/mike-hoang/private-repo-example/raw/main/devfile.yaml
Running ParseDevfileAndValidate against private GitHub, Gitlab, and Bitbucket repos containing the files structure above should result in the docker/Dockerfile and kubernetes/deploy.yaml downloaded.