Documentation ¶
Index ¶
Constants ¶
View Source
const ClusterRoleBindingByClusterRoleName = "indexClusterRoleBindingByClusterRole"
Variables ¶
This section is empty.
Functions ¶
func InstallIndexers ¶ added in v0.25.0
func InstallIndexers(clusterRoleBindingInformer kcprbacinformers.ClusterRoleBindingClusterInformer)
InstallIndexers adds the additional indexers that this controller requires to the informers.
Types ¶
type Controller ¶
type Controller interface { Start(ctx context.Context, numThreads int) EnqueueClusterRoles(values ...interface{}) }
func NewController ¶
func NewController( controllerName string, groupName string, isRelevantClusterRole func(clusterName logicalcluster.Name, cr *rbacv1.ClusterRole) bool, isRelevantClusterRoleBinding func(clusterName logicalcluster.Name, crb *rbacv1.ClusterRoleBinding) bool, kubeClusterClient kcpkubernetesclientset.ClusterInterface, clusterRoleInformer kcprbacinformers.ClusterRoleClusterInformer, clusterRoleBindingInformer kcprbacinformers.ClusterRoleBindingClusterInformer, ) Controller
NewController returns a new controller for labelling ClusterRole that should be replicated.
Click to show internal directories.
Click to hide internal directories.