controller

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkloadsController

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

WorkloadsController central controller that manages the communication between the different modules

func NewController

func NewController() (*WorkloadsController, error)

NewController creates a new controller and returns a pointer to the created object

func (*WorkloadsController) AddConfigMapEventHandler

func (c *WorkloadsController) AddConfigMapEventHandler()

AddConfigMapEventHandler subscribes and routes the different events of interest to the ConfigMap informer

func (*WorkloadsController) AddNodeEventHandler

func (c *WorkloadsController) AddNodeEventHandler()

AddNodeEventHandler subscribes and routes the different events of interest to the nodes informer

func (*WorkloadsController) AddPodEventHandler

func (c *WorkloadsController) AddPodEventHandler()

AddPodEventHandler subscribes and routes the different events of interest to the pods informer

func (*WorkloadsController) CreateRunInformers

func (c *WorkloadsController) CreateRunInformers()

CreateRunInformers create and run the informers in a parallel thread

func (*WorkloadsController) RunCalculationLoop

func (c *WorkloadsController) RunCalculationLoop()

RunCalculationLoop Run the cluster calculation loop every minute

Jump to

Keyboard shortcuts

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