labelclusterroles

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 24 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)

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