informer

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InformersMap sync.Map
View Source
var StopChanMap sync.Map

Functions

func DeleteInformer

func DeleteInformer(clusterID, namespace string)

func NewInformer

func NewInformer(clusterID, namespace string, cls *kubernetes.Clientset) (informers.SharedInformerFactory, error)

NewInformer initialize and start an informer for specific namespace in given cluster. Currently the informer will NOT stop unless the service is down If you want to watch a new resource, remember to register here Current list: - Deployment - StatefulSet - Service - Pod - Ingress (extentions/v1beta1) <- as of version 1.9.0, this is the resource we watch - ConfigMap - Job - CronJob (batch/v1beta1)

Types

This section is empty.

Jump to

Keyboard shortcuts

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