Skip to content
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

[neutron] add rbac related parts for ovn #7852

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

toanju
Copy link

@toanju toanju commented Feb 7, 2025

This adds the following kinds used by ovn:

  • ClusterRole
  • ClusterRoleBinding
  • Role
  • RoleBinding
  • ServiceAccount

Comment on lines +35 to +44
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: ovnkube-db
rules:
- apiGroups: [""]
resources:
- nodes
- namespaces
verbs: [ "get", "list", "watch" ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect we can patch that out: https://github.com/ovn-kubernetes/ovn-kubernetes/blob/d3b10e87f7fffa38fdf4ad52f98bc8ba998df6c2/dist/images/ovnkube.sh#L736-L743,
and then do not need access to the node api either.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for now I'd like to keep it and do as less patching as needed since we should rewrite that with a proper operator anyway

This adds the following kinds used by ovn:

* ClusterRole
* ClusterRoleBinding
* Role
* RoleBinding
* ServiceAccount
@toanju toanju force-pushed the toanju/neutron/ovn-rbac branch from 6f8e449 to f8ab8c7 Compare February 7, 2025 16:57
@toanju toanju requested a review from fwiesel February 7, 2025 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants