[ENHANCEMENT] Restrict the manager's access permission #48
Labels
area/rbac
component/chart
Relevant to the Helm chart
component/manager
Relevant to the custom Kubernetes controllers
kind/enhancement
Improve or augment existing functionality
While working on #13, I found that
virtbmc-controller
requires excessive permission to work. Fromvirtbmc-controller
's log:Apparently, the manager requires cluster-scoped permission to access Pods and Services across different namespaces. However, this is unnecessary. KubeVirtBMC only creates and manages
virtbmc
Pods and Services under thekubevirtbmc-system
. Giving its ServiceAccount a ClusterRole power is overkilling. We might want to restrict it to be in the working namespace.The text was updated successfully, but these errors were encountered: