-
Notifications
You must be signed in to change notification settings - Fork 18
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(api): add source and qa-skip as parameters for plan and outputs endpoints #155
feat(api): add source and qa-skip as parameters for plan and outputs endpoints #155
Conversation
Thanks for making a pull request! 😃 |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #155 +/- ##
==========================================
- Coverage 14.55% 14.48% -0.07%
==========================================
Files 2 2
Lines 213 214 +1
==========================================
Hits 31 31
- Misses 178 179 +1
Partials 4 4 ☔ View full report in Codecov by Sentry. |
@gabriel-farache Thanks for making the PR! A couple of questions:
It might require some changes in https://github.com/konveyor/move2kube to use something like https://confluence.atlassian.com/bbkb/how-to-check-your-repository-s-size-and-identify-large-files-1178867192.html We can return an error message if the size is too large. |
@HarikrishnanBalagopal For the 1st point, yes it's doable For the 2nd point it would be more complicated |
@gabriel-farache The DCO for the PR has failed. To pass this test, could you please sign your commits? |
ac0b265
to
5c27a4a
Compare
@seshapad Sorry, I forgot the |
No worries. Thank you for addressing it. |
6522279
to
8d537b2
Compare
Signed-off-by: gabriel-farache <gfarache@redhat.com>
Signed-off-by: gabriel-farache <gfarache@redhat.com>
8d537b2
to
f895e95
Compare
@gabriel-farache Have implemented the size limit in CLI konveyor/move2kube#1111 |
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
In order to allow users to run Move2Kube with the API in a non-interactive mode, I added the
remote-source
query parameter in theplan
endpoint and theskip-qa
query parameter in theoutputs
endpoints.remote-source
is expected a git URL that will be used by the cmd.skip-qa
will set the the flagqa-skip
totrue
when executing the transformation cmd.This will allow CI pipeline to test the usage of M2K without any interaction or pre-configured file.
Needs konveyor/move2kube#1109 to be merged as it fixes a missing default value for SSHKeys; when skipping the QA, it causes an error.