controlloop

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PodInformerFactory added in v0.6.2

func PodInformerFactory(k8sClientSet kubernetes.Interface) (v1coreinformerfactory.SharedInformerFactory, error)

PodInformerFactory is a wrapper around NewSharedInformerFactoryWithOptions. Before returning the informer, it will extract the node name from environment variable "NODENAME". It will then try to look up the node with the given name. On success, it will create an informer that filters all pods with spec.nodeName == <value of env NODENAME>.

Types

type PodController

type PodController struct {
	// contains filtered or unexported fields
}

func NewPodController

func NewPodController(k8sCoreClient kubernetes.Interface, wbClient wbclientset.Interface, k8sCoreInformerFactory v1coreinformerfactory.SharedInformerFactory, wbSharedInformerFactory wbinformers.SharedInformerFactory, netAttachDefInformerFactory nadinformers.SharedInformerFactory, broadcaster record.EventBroadcaster, recorder record.EventRecorder) *PodController

NewPodController ...

func (*PodController) Shutdown

func (pc *PodController) Shutdown()

Shutdown stops the PodController worker queue

func (*PodController) Start

func (pc *PodController) Start(stopChan <-chan struct{})

Start runs worker thread after performing cache synchronization

Jump to

Keyboard shortcuts

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