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
}
Click to show internal directories.
Click to hide internal directories.