framework

package
v1.7.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForeachController

func ForeachController(fn func(controller Controller))

ForeachController is helper function to operator all controllers.

func RegisterController

func RegisterController(ctrl Controller) error

RegisterController register controller to the controller manager.

Types

type Controller

type Controller interface {
	Name() string
	Initialize(opt *ControllerOption) error
	// Run run the controller
	Run(stopCh <-chan struct{})
}

Controller is the interface of all controllers.

type ControllerOption

type ControllerOption struct {
	KubeClient            kubernetes.Interface
	VolcanoClient         vcclientset.Interface
	SharedInformerFactory informers.SharedInformerFactory
	SchedulerNames        []string
	WorkerNum             uint32
	MaxRequeueNum         int

	InheritOwnerAnnotations bool
}

ControllerOption is the main context object for the controllers.

Jump to

Keyboard shortcuts

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