-
Notifications
You must be signed in to change notification settings - Fork 402
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
📖 Add APIBindings example #3207
Conversation
Hi @SimonTheLeg. Thanks for your PR. I'm waiting for a kcp-dev member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
bd923f6
to
7ac5005
Compare
/ok-to-test |
595ad6b
to
d10b444
Compare
addressed all comments. Ready for review again |
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.
Some small changes I would suggest.
path: "root:api-provider" # path of your api-provider workspace | ||
``` | ||
|
||
It should be noted that `APIBindings` do not create `CRDs` or `APIResourceSchemas`. Instead APIs are directly bound. |
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.
Instead APIs are directly bound.
What does this mean?
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.
maybe something "apis are reflected". It there, but not in the same way in Kubernetes. So some clearing the waters is needed
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 have re-worked this section again. I would really like to keep the word "bound" in as it comes directly from how Kubernetes behind the scenes calls it "binding apis".
I have made it more clear that this is something kcp does for you behind the scenes and then in the next sentence I outlined what the practical implications of it are.
I think it is important in this section that we don't go into too many details and only outline what this means for an end-user.
|
||
`APIBindings` are used to import API resources. They contain a reference to an `APIExport` using the namespace and workspace path of an `APIExport` and will bind all APIs defined in the `APIExport`. The reference path needs to be provided to you by the provider of the API or an external catalog solution. | ||
|
||
Furthermore, `APIBindings` provide the `APIExport` owner access to additional resources defined in an `APIExport`'s `PermissionClaims` list. `PermissionClaims` must be accepted by the user explicitly, before this access is granted. The resources can be builtin Kubernetes resources or resources from other `APIExports`. |
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.
How are these permissions granted? Need an example in line with the APIExport
sample 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.
very good point. I have added an example which matches the previous APIExport
On-behalf-of: SAP [email protected] Signed-off-by: Simon Bein <[email protected]>
Co-authored-by: Dr. Stefan Schimanski <[email protected]> On-behalf-of: SAP [email protected] Signed-off-by: Simon Bein <[email protected]>
On-behalf-of: SAP [email protected] Signed-off-by: Simon Bein <[email protected]>
fca5a93
to
c7d58d4
Compare
On-behalf-of: SAP <[email protected]> Signed-off-by: Simon Bein <[email protected]>
c7d58d4
to
19c1877
Compare
@embik I think this PR is ready for review/merging now. I have addressed all the comments and I think it's a good state to merge. |
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.
One last (🤞🏻 ) thing.
Co-authored-by: Marvin Beckers <[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.
/approve
LGTM label has been added. Git tree hash: 9f63413f9915447f0bc975bff54e9770f4679e02
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: embik 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 |
/cherry-pick release-0.27 |
@SimonTheLeg: once the present PR merges, I will cherry-pick it on top of release-0.27 in a new PR and assign it to you. 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. |
@SimonTheLeg: new pull request created: #3355 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. |
Summary
Adds an APIBinding example to fit with the example previously on the page and adds some more information on APIBindings/turns some of the bullets into full text.
The asciiflow link did not resolve for me and is also not rendered in the documentation at the moment, so I removed it.
Related issue(s)
Fixes #
Release Notes