-
Notifications
You must be signed in to change notification settings - Fork 398
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
bug: APIs bound through Permission Claims not available when using identityHash #1845
Comments
/assign |
@johnmcollier please try adding another APIBinding in your workspace, to the gitops APIExport. /priority awaiting-more-evidence |
@ncdc Yes, if I add another APIBinding the APIs in the gitops APIExport become available. But I thought the permission claims meant that wasn't needed? kcp/pkg/apis/apis/v1alpha1/types_apiexport.go Lines 143 to 158 in 4abc675
|
Is this #1183 ? |
@stevekuznetsov nope, different |
@johnmcollier both bindings are required |
This is not a bug |
Closing |
Then should the description for Since the description:
makes it seem like the second APIBinding is not needed. |
That is only relevant for API providers accessing their APIExport's virtual workspace. |
@ncdc So does that mean a controller running in my APIExport's virtual workspace should have the API(s) available there without a separate APIBinding? If so, my controller still fails on start up saying those APIs aren't available in the virtual workspace. |
Now that is #1183 😄 |
Describe the bug
When specifying another APIExport's identityHash in a permission claim in an APIExport / APIBinding, the APIBinding will create successfully:
E.g.:
with the following status conditions:
But if I run
kubectl get environments
the command fails, sayingerror: the server doesn't have a resource type "environments"
Steps To Reproduce
I've created a reporducer here: https://github.com/johnmcollier/kcp-permissionclaims-reproducer
Expected Behaviour
The APIs specified in the permission claims are available.
Additional Context
No response
The text was updated successfully, but these errors were encountered: