controller

package
v0.0.0-...-f0ef8f0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NagController

type NagController interface {
	OnAddNag(nag *assignmentsv1alpha1.NodeAssignmentGroup)
	OnUpdateNag(oldNag *assignmentsv1alpha1.NodeAssignmentGroup, newNag *assignmentsv1alpha1.NodeAssignmentGroup)
	OnDeleteNag(nag *assignmentsv1alpha1.NodeAssignmentGroup)
}

NagController a controller that processes nag events

type NodeController

type NodeController interface {
	OnAddNode(node *corev1.Node)
	OnUpdateNode(oldNode *corev1.Node, newNode *corev1.Node)
	OnDeleteNode(node *corev1.Node)
}

NodeController a controller that processes node events

type PodController

type PodController interface {
	OnAddPod(pod *corev1.Pod)
	OnUpdatePod(oldPod *corev1.Pod, newPod *corev1.Pod)
	OnDeletePod(pod *corev1.Pod)
}

PodController a controller that processes pod events

type ResourceWatcher

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

ResourceWatcher abstracts and shares indexers and informers. Passes events onto the controllers that handle the business logic for each event.

func NewResourceWatcher

func NewResourceWatcher(kubeClientet kubernetes.Interface, valetClient valet.Interface, config *config.ValetConfig) *ResourceWatcher

NewResourceWatcher creates a new ResourceWatcher

func (*ResourceWatcher) ParController

func (rw *ResourceWatcher) ParController() *podassignment.Controller

func (*ResourceWatcher) Run

func (rw *ResourceWatcher) Run(stopChan chan struct{})

Run starts the indexers, informers, and controllers.

func (*ResourceWatcher) StartElectedComponents

func (rw *ResourceWatcher) StartElectedComponents(ctx context.Context)

func (*ResourceWatcher) StopElectedComponents

func (rw *ResourceWatcher) StopElectedComponents()

Directories

Path Synopsis
scheduling

Jump to

Keyboard shortcuts

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