-
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
List all services in JSON output #5025
List all services in JSON output #5025
Conversation
This is somewhat irrelevant to this PR but, do we need component to create a service? If connecting a service and component is only possible via linking, then what is the point in creating the service via a component first? Can't service be independent of a component? (I vaguely remember that we have had these discussions in the past but I don't remember what was concluded). |
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.
The PR looks good to me apart from a few things. Functionality looks good as well; tested with pushed/not-pushed/locally-deleted/not-managed-by-odo services.
Should we add an integration test for services not managed by odo?
pkg/odo/cli/service/list_operator.go
Outdated
if log.IsJSON() { | ||
if len(servicesItems.Items) == 0 { | ||
if len(failedListingCR) > 0 { | ||
fmt.Printf("Failed to fetch services for operator(s): %q\n\n", strings.Join(failedListingCR, ", ")) |
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.
Why is this not a fmt.Errorf statement?
43d315f
to
1b4a029
Compare
1b4a029
to
d87078e
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dharmit 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 |
This has come up more than a few times during various conversations. AFAIK, @kadel is looking into this aspect along with @deboer-tim. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
8 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required CI fix has been merged (#5028) |
d87078e
to
fbdf5a6
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
/test psi-unit-test-windows
|
/test psi-kubernetes-integration-e2e
|
/lgtm Adding again because it was removed due to rebase. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/kind bug
What does this PR do / why we need it:
Which issue(s) this PR fixes:
Fixes #4992
PR acceptance criteria:
Unit test
Integration test
Documentation
I have read the test guidelines
How to test changes / Special notes to the reviewer: