-
Notifications
You must be signed in to change notification settings - Fork 244
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
Use a single handler for executing all commands #6826
Use a single handler for executing all commands #6826
Conversation
✅ Deploy Preview for odo-docusaurus-preview canceled.
|
04018b4
to
5dd0879
Compare
18ebc5a
to
e9c739b
Compare
166896c
to
7429326
Compare
b3e295c
to
ba1d715
Compare
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.
Thanks for your work on this! LGTM overall.
Had a few minor comments..
pkg/devfile/image/image.go
Outdated
@@ -103,10 +107,10 @@ func buildPushImage(backend Backend, fs filesystem.Filesystem, image *devfile.Im | |||
return nil | |||
} | |||
|
|||
// selectBackend selects the container backend to use for building and pushing images | |||
// SelectBackend selects the container backend to use for building and pushing images | |||
// It will detect podman and docker CLIs (in this order), | |||
// or return an error if none are present locally |
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.
nit:
// or return an error if none are present locally | |
// or return nil if none are present locally |
pkg/component/handler_test.go
Outdated
} | ||
|
||
/* | ||
func TestApplyImage(t *testing.T) { |
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 we remove these commented lines if not needed? I can see they seem to be covered with the big test above..
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.
I forgot to cleanup these old tests. Thanks
pkg/component/exec_handler_test.go
Outdated
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.
Do we still need this test file?
Kudos, SonarCloud Quality Gate passed!
|
/override
|
/override OpenShift-Integration-tests/OpenShift-Integration-tests
|
@feloy: Overrode contexts on behalf of feloy: OpenShift-Integration-tests/OpenShift-Integration-tests In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/override windows-integration-test/Windows-test
|
@feloy: Overrode contexts on behalf of feloy: windows-integration-test/Windows-test In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What type of PR is this:
/kind code-refactoring
What does this PR do / why we need it:
Which issue(s) this PR fixes:
Fixes #6792
PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer: