Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultKubeConfigPath is /etc/kubernetes/controller-manager.conf DefaultKubeConfigPath = "/etc/kubernetes/controller-manager.conf" // EnvKubeConfig contains the path to the KubeConfig EnvKubeConfig = "VSPHERE_KUBE_CONFIG" )
Variables ¶
This section is empty.
Functions ¶
func NewClientOrDie ¶
NewClientOrDie creates a newk8s client based on a service account
Types ¶
type InformerManager ¶
type InformerManager struct {
// contains filtered or unexported fields
}
InformerManager is a service that notifies subscribers about changes to well-defined information in the Kubernetes API server.
func NewInformer ¶
func NewInformer(client clientset.Interface, singleWatcher bool) *InformerManager
NewInformer creates a newk8s client based on a service account
func (*InformerManager) AddNodeListener ¶
func (im *InformerManager) AddNodeListener(add, remove func(obj interface{}), update func(oldObj, newObj interface{}))
AddNodeListener hooks up add, update, delete callbacks
func (*InformerManager) GetSecretLister ¶ added in v1.1.0
func (im *InformerManager) GetSecretLister() listerv1.SecretLister
GetSecretLister creates a lister to use
func (*InformerManager) Listen ¶
func (im *InformerManager) Listen()
Listen starts the Informers. Based on client-go informer package, if the Lister has already been initialized, it will not re-init them. Only new non-init Listers will be initialized.
Click to show internal directories.
Click to hide internal directories.