-
Notifications
You must be signed in to change notification settings - Fork 12
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
RoleBinding not being updated properly on namespace ownership change #1506
Comments
Updated the profile.libsonnet by re-adding the code that used to create a rolebinding duplicate, but instead of creating a duplicate namespaceAdmin RoleBinding object, its overriding that namespaceAdmin object with the correct value for metadata.annotations.user |
After looking at upstream since the issue did seem to come from upstream code, there is an issue open on their repository that relates to this issue kubeflow/dashboard#33 . |
Testing with Yann, we noticed that we might still encounter ownership issue with cases where a duplicate namespaceAdmin rolebinding was created (namespaceAdmin-yann-coderre-....). So deleting this "namespaceAdmin-yann-coderre-..." rolebinding fixed the issue where Yann was still an owner. Afterwards, we reverted the namespace by replacing me as an owner and putting back Yann and things worked as expected where I was not an owner and he was an owner. |
See comments in https://github.com/StatCan/daaas-private/issues/50 for details on the issue.
When changing the owner of a namespace by editing the jsonnet file through our kubeflow profiles repo, it doesn't update the
metadata.annotations.user
value in thenamespaceAdmin
RoleBinding object.That value is what gets looked at when the KFAM api checks to see if a user should have access to a namespace.
The text was updated successfully, but these errors were encountered: