gc

package
v1.0.0-2021-09-21-18-4... Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClustersetFinalizerName string = "open-cluster-management.io/clusterset"
)

Variables

This section is empty.

Functions

func SetupWithManager

func SetupWithManager(mgr manager.Manager) error

Types

type CleanGarbageFinalizer

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

In 2.2.X, we add the finalier for some clusterrole(have admin permission to clusterset) In 2.3, the finalizer is not needed, so we need to clean these finalizers to handle upgrade case.

func NewCleanGarbageFinalizer

func NewCleanGarbageFinalizer(kubeClient kubernetes.Interface) *CleanGarbageFinalizer

func (*CleanGarbageFinalizer) Run

func (c *CleanGarbageFinalizer) Run(stopCh <-chan struct{})

start a routine to sync the clusterrolebinding periodically.

type Reconciler

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

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Jump to

Keyboard shortcuts

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