Rework foreign apibinding permissionclaims logic#4088
Conversation
|
In general, is it really okay to claim resources that haven't been bound / don't exist in APIBinding's workspace? An argument in favor could be that we don't care about the order in which APIBindings come (those who have claims against a resource VS the binding that binds that resource); depends 🤷 other than that, /lgtm It will be interesting to see how this affects perf with large number of bindings though. |
|
^ /lgtm |
|
LGTM label has been added. DetailsGit tree hash: 39cef409f73c601a9873b7a7e5492463cde9b6bf |
This is an existing feature, so it just does not work in this edge case |
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: 78ccd199e32d3c9d526efa49c6a45b6a62efe59d |
|
https://docs.kcp.io/kcp/main/concepts/apis/exporting-apis/#permission-claims_1
Docs might need a change too then. |
Signed-off-by: Mangirdas Judeikis <mangirdas@judeikis.lt> On-behalf-of: SAP <mangirdas.judeikis@sap.com>
cf2f4ec to
28e1707
Compare
28e1707 to
720783e
Compare
|
LGTM label has been added. DetailsGit tree hash: 9eaec19adaf46aec89706ec0aee4bf49453a0d49 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ntnn The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
Summary
In this PR, a few things happen:
Added extensive code comments as this was a ⛏️
What Type of PR Is This?
/kind bug
Related Issue(s)
Fixes #4087
Release Notes