sethandler

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SetHandler

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

SetHandler is the data set encapsulating the configuration data needed for the CPUSetter Controller to be able to adjust cpusets

func New

func New(kubeConf string, poolConfig types.PoolConfig, cpusetRoot string) (*SetHandler, error)

New creates a new SetHandler object Can return error if in-cluster K8s API server client could not be initialized

func (*SetHandler) CreateController

func (setHandler *SetHandler) CreateController() cache.Controller

CreateController takes the K8s client from the SetHandler object, and uses it to create a single thread K8s Controller The Controller registers eventhandlers for ADD and UPDATE operations happening in the core/v1/Pod API

func (*SetHandler) PodAdded added in v0.3.1

func (setHandler *SetHandler) PodAdded(pod v1.Pod)

PodAdded handles ADD operations

func (*SetHandler) PodChanged added in v0.3.1

func (setHandler *SetHandler) PodChanged(oldPod, newPod v1.Pod)

PodChanged handles UPDATE operations

func (SetHandler) SetHandler added in v0.3.1

func (setHandler SetHandler) SetHandler() SetHandler

SetHandler returns the SetHandler data set

func (*SetHandler) SetSetHandler added in v0.3.1

func (setHandler *SetHandler) SetSetHandler(poolconf types.PoolConfig, cpusetRoot string, k8sClient kubernetes.Interface)

SetSetHandler a setter for SetHandler

Jump to

Keyboard shortcuts

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