finalizer

package
v0.0.0-...-88a9ed4 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OverlappingBuiltInResources

func OverlappingBuiltInResources() map[schema.GroupResource]bool

OverlappingBuiltInResources returns the set of built-in group/resources that are persisted in storage paths that overlap with GRD storage paths, and should not be deleted by this controller if an associated GRD is deleted.

Types

type GRClientGetter

type GRClientGetter interface {
	// GetGrafanaResourceListerCollectionDeleter gets the ListerCollectionDeleter for the given GRD
	// UID.
	GetGrafanaResourceListerCollectionDeleter(grd *kindsv1.GrafanaResourceDefinition) (ListerCollectionDeleter, error)
}

GRClientGetter knows how to get a ListerCollectionDeleter for a given GRD UID.

type GRDFinalizer

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

GRDFinalizer is a controller that finalizes the GRD by deleting all the CRs associated with it.

func NewGRDFinalizer

func NewGRDFinalizer(
	grdInformer informers.GrafanaResourceDefinitionInformer,
	grdClient client.GrafanaResourceDefinitionsGetter,
	crClientGetter GRClientGetter,
) *GRDFinalizer

NewGRDFinalizer creates a new GRDFinalizer.

func (*GRDFinalizer) Run

func (c *GRDFinalizer) Run(workers int, stopCh <-chan struct{})

type ListerCollectionDeleter

type ListerCollectionDeleter interface {
	rest.Lister
	rest.CollectionDeleter
}

ListerCollectionDeleter combines rest.Lister and rest.CollectionDeleter.

Jump to

Keyboard shortcuts

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