Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KyvernoDefaultInformer = []string{"ConfigMap", "Secret", "Deployment", "MutatingWebhookConfiguration", "ValidatingWebhookConfiguration"}
Functions ¶
This section is empty.
Types ¶
type GenericCache ¶ added in v1.3.2
type GenericCache interface { StopInformer() IsNamespaced() bool Lister() dynamiclister.Lister NamespacedLister(namespace string) dynamiclister.NamespaceLister GVR() schema.GroupVersionResource }
GenericCache - allows operation on a single resource
func NewGVRCache ¶
func NewGVRCache(gvr schema.GroupVersionResource, namespaced bool, stopCh chan struct{}, genericInformer informers.GenericInformer) GenericCache
NewGVRCache ...
type ResourceCache ¶
type ResourceCache interface { CreateInformers(resources ...string) []error CreateResourceInformer(resource string) (GenericCache, error) StopResourceInformer(resource string) GetGVRCache(resource string) (GenericCache, bool) }
ResourceCache - allows the creation, deletion and saving the resource informers as a cache
func NewResourceCache ¶
func NewResourceCache(dclient *dclient.Client, dInformer dynamicinformer.DynamicSharedInformerFactory, logger logr.Logger) (ResourceCache, error)
NewResourceCache - initializes the ResourceCache
Click to show internal directories.
Click to hide internal directories.