Documentation ¶
Index ¶
- Constants
- func NewClient(name string) (clientset.Interface, error)
- func NewClientOrDie(name string) clientset.Interface
- type InformerManager
- func (im *InformerManager) AddNodeListener(add, remove func(obj interface{}), update func(oldObj, newObj interface{}))
- func (im *InformerManager) GetNodeLister() listerv1.NodeLister
- func (im *InformerManager) GetSecretInformer() informerv1.SecretInformer
- func (im *InformerManager) GetSecretLister() listerv1.SecretLister
- func (im *InformerManager) IsNodeInformerSynced() cache.InformerSynced
- func (im *InformerManager) Listen()
Constants ¶
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) GetNodeLister ¶ added in v1.21.0
func (im *InformerManager) GetNodeLister() listerv1.NodeLister
GetNodeLister creates a lister to use
func (*InformerManager) GetSecretInformer ¶ added in v1.18.0
func (im *InformerManager) GetSecretInformer() informerv1.SecretInformer
GetSecretInformer gets secret informer
func (*InformerManager) GetSecretLister ¶ added in v1.1.0
func (im *InformerManager) GetSecretLister() listerv1.SecretLister
GetSecretLister creates a lister to use
func (*InformerManager) IsNodeInformerSynced ¶ added in v1.21.0
func (im *InformerManager) IsNodeInformerSynced() cache.InformerSynced
IsNodeInformerSynced returns whether node informer is synced
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.