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