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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.