gc

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

package gc contains the hub-side reconciler to cleanup finalizer on role/rolebinding in cluster namespace when ManagedCluster is being deleted. and delete the cluterRoles for the registration and work agent after therer is no cluster and manifestwork.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGCController

func NewGCController(
	clusterRoleLister rbacv1listers.ClusterRoleLister,
	clusterRoleBindingLister rbacv1listers.ClusterRoleBindingLister,
	roleBindingLister rbacv1listers.RoleBindingLister,
	clusterInformer informerv1.ManagedClusterInformer,
	manifestWorkLister worklister.ManifestWorkLister,
	clusterClient clientset.Interface,
	kubeClient kubernetes.Interface,
	metadataClient metadata.Interface,
	approver register.Approver,
	eventRecorder events.Recorder,
	gcResourceList []string,
	resourceCleanupFeatureGateEnable bool,
) factory.Controller

NewGCController ensures the related resources are cleaned up after cluster is deleted

Types

type GCController

type GCController struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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