labelclusterroles

package
v0.26.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 25 Imported by: 2

Documentation

Index

Constants

View Source
const ClusterRoleBindingByClusterRoleName = "indexClusterRoleBindingByClusterRole"

Variables

This section is empty.

Functions

func IndexClusterRoleBindingByClusterRoleName

func IndexClusterRoleBindingByClusterRoleName(obj interface{}) ([]string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL