controller

package
v1.60.4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleOrderIdx = 2
	ModuleNameIdx  = 3
)

Variables

View Source
var (
	ErrModuleAlreadyExists = errors.New("module already exists")
)

Functions

This section is empty.

Types

type DeckhouseController

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

func NewDeckhouseController

func NewDeckhouseController(ctx context.Context, config *rest.Config, mm *module_manager.ModuleManager, metricStorage *metric_storage.MetricStorage) (*DeckhouseController, error)

func (*DeckhouseController) DiscoverDeckhouseModules added in v1.60.1

func (dml *DeckhouseController) DiscoverDeckhouseModules(ctx context.Context, moduleEventC <-chan events.ModuleEvent, deckhouseConfigC <-chan utils.Values) error

discovers modules on the fs, runs modules events loop (register/delete/etc)

func (*DeckhouseController) InitModulesAndConfigsStatuses added in v1.59.0

func (dml *DeckhouseController) InitModulesAndConfigsStatuses() error

InitModulesAndConfigsStatuses inits and moduleconfigs' status fields at start up

func (*DeckhouseController) LoadModule added in v1.59.0

func (dml *DeckhouseController) LoadModule(moduleSource, modulePath string) (*modules.BasicModule, error)

LoadModule reads single directory and returns BasicModule modulePath is in the following format: /deckhouse-controller/external-modules/<module_name>/<module_version>

func (*DeckhouseController) LoadModules

func (dml *DeckhouseController) LoadModules() ([]*modules.BasicModule, error)

func (*DeckhouseController) StartPluggableModulesControllers added in v1.60.1

func (dml *DeckhouseController) StartPluggableModulesControllers(ctx context.Context)

Start function starts all child controllers linked with Modules

Directories

Path Synopsis
module-controllers

Jump to

Keyboard shortcuts

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