-
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
odo describe binding #5773
odo describe binding #5773
Conversation
✅ Deploy Preview for odo-docusaurus-preview canceled.
|
07ee170
to
465ab4d
Compare
465ab4d
to
7ad8b3a
Compare
did some basic testing and this looks great. 👍 ❤️ for adding documentation. I would maybe add just one small thing. When a user runs
We could add a note at the end of the output to explain what is happening.
|
I'm not sure. If the |
Okay - makes sense. Thanks. |
- [Describe with access to Devfile](#describe-with-access-to-devfile) | ||
- [Describe without access to Devfile](#describe-without-access-to-devfile) | ||
|
||
## Describe with access to Devfile |
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.
For command reference, we are trying to have a consistent format between all documentation. Can you split these sections up similar to: https://odo.dev/docs/3.0.0/command-reference/dev ?
Ex. Section for Description, Running the Command and Devfile usage.
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 made the changes, thanks
231082b
to
489855e
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: valaparthvi 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 |
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.
Few comments/questions, few change requests.
pkg/binding/binding.go
Outdated
} | ||
|
||
if bindingSB.Spec.BindAsFiles { | ||
bindings := make([]string, 0, len(secret.Data)) |
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.
This declaration could be made outside the if
block so that it doesn't need to be done twice.
return specApi.ServiceBinding{}, err | ||
} | ||
|
||
var result specApi.ServiceBinding |
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.
Similar question as in GetBindingServiceBinding
method for var result
declaration.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Thanks @dharmit for your review. I made changes based on your feedback, or replied to some comments |
Since the request made by @cdrage is addressed already, and my change requests have also been addressed, LGTM. /lgtm |
* List Servicebindings from SBO only * Support both implementations * Integration tests (TBC) * Human readable output * Support --name flag * Reference doc * fix * self review * Check for InjectionReady condition before to get bindings * Fix comments * Remove unnecessary error returned value * Display info when status is unknown * Sections in doc * Review
What type of PR is this:
/kind feature
What does this PR do / why we need it:
Which issue(s) this PR fixes:
Fixes #5659
PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer: