-
Notifications
You must be signed in to change notification settings - Fork 13
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
fix: Add Persistence Agent ClusterRole and Binding #324
Conversation
Apply auth manifests for the KFP Persistence Agent, including the ClusterRole, ClusterRoleBinding, and ServiceAccount that allow the workload to get, list, and watch workflows/scheduledworkflows, as well as get namespaces. Signed-off-by: Phoevos Kalemkeris <phoevos.kalemkeris@canonical.com>
Signed-off-by: Phoevos Kalemkeris <phoevos.kalemkeris@canonical.com>
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.
Thanks @phoevos, this change makes sense. Is there a way we can expand the repository level integration tests to be able to catch this type of errors?
Co-authored-by: Daniela Plascencia <daniela.plascencia@canonical.com>
@DnPlas, I'm not really sure how we could catch this in our CI, given that this won't cause an issue right now (since we're deploying the charm with trust, the workload will by extension get all required permissions and then some). We could add a test to all of our sidecar charms to ensure that they also apply the Roles provided by upstream. But I think that the effort of doing that is exactly the same as just adding the required roles. Let alone the fact that if I remember to add the test, I'll realise that I need to apply some roles and I'll just do that. |
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.
Thanks @phoevos LGTM!
Apply auth manifests (KF 1.8) for the KFP Persistence Agent, including the ClusterRole, ClusterRoleBinding, and ServiceAccount that allow the workload to get, list, and watch workflows/scheduledworkflows, as well as get namespaces.