-
Notifications
You must be signed in to change notification settings - Fork 35
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
Introduce rbac controller to handle RoleBindings #434
Conversation
Skipping CI for Draft Pull Request. |
/retest-required |
1 similar comment
/retest-required |
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.
Thank you for the great changes.
One additional request, we would like to keep this feature behind devflag and default keep it false, in future, once the bits are cleaned from dashboard , we would make it true, in this way this feature doesn't need to be stalled on dev side.
The GHA tests had a great catch on the new changes! So since the configMap was false the operator didn't create any rolebinding and that why had the failure https://github.com/opendatahub-io/kubeflow/actions/runs/11611201427/job/32332040147?pr=434#step:4:540 Need to update the tests, in case that found |
components/odh-notebook-controller/controllers/notebook_controller_test.go
Outdated
Show resolved
Hide resolved
595bcfe
to
1024d62
Compare
/lgtm overall, if I understand this correctly it just moves the rolebinding creation that dashboard used to do into our controller, but I'd want harshad to check it too ;p |
PR needs rebase. 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-sigs/prow repository. |
components/odh-notebook-controller/controllers/notebook_rbac.go
Outdated
Show resolved
Hide resolved
/retest-required |
/test odh-notebook-controller-unit |
1 similar comment
/test odh-notebook-controller-unit |
/lgtm |
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.
lgtm
i have tested the os.getenv, seems to be working as expected.
perhaps, we should take a closer look.
anyhow have few more comments
components/odh-notebook-controller/controllers/notebook_rbac.go
Outdated
Show resolved
Hide resolved
4d7146a
to
57e275f
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: 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 |
Thank you all for you time to review this and make it better! /override ci/prow/odh-notebook-controller-e2e |
@atheo89: Overrode contexts on behalf of atheo89: ci/prow/odh-notebook-controller-e2e 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-sigs/prow repository. |
Related to: https://issues.redhat.com/browse/RHOAIENG-580
Description
The PR introduce a new controller under odh-controller that handles the RoleBindings
How Has This Been Tested?
Created new test cases on the
notebook_controller_test.go
for RoleBinding creation, delete and update.The video bellow demonstrates three different scenarios
elyra-pipeline-<notebook-name>
https://drive.google.com/file/d/1uJJumxBiZukyVNakQ0uULZ68syKpq_3o/view?usp=sharing
Merge criteria: