kubernetes

package
v1.22.4-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

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 NewClient

func NewClient(name string) (clientset.Interface, error)

NewClient creates a newk8s client based on a service account

func NewClientOrDie

func NewClientOrDie(name string) clientset.Interface

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.

Jump to

Keyboard shortcuts

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