Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InformersMap sync.Map
View Source
var NamingConvention = "%s-%s-%s"
View Source
var StopChanMap sync.Map
Functions ¶
func NewInformer ¶
func NewInformer(kubeCluster, namespace, srvName 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.