const saRolePrefix … func addControllerRole(controllerRoles *[]rbacv1.ClusterRole, controllerRoleBindings *[]rbacv1.ClusterRoleBinding, role rbacv1.ClusterRole) { … } func eventsRule() rbacv1.PolicyRule { … } func buildControllerRoles() ([]rbacv1.ClusterRole, []rbacv1.ClusterRoleBinding) { … } // ControllerRoles returns the cluster roles used by controllers func ControllerRoles() []rbacv1.ClusterRole { … } // ControllerRoleBindings returns the role bindings used by controllers func ControllerRoleBindings() []rbacv1.ClusterRoleBinding { … }