ctrlmgr

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	KubernetesConfig string

	AllowPrivileged bool

	LeaderElect bool

	WebhookCert       string
	WebhookServerPort int
}

func (*Config) Validate

func (c *Config) Validate() []error

type ControllerManager

type ControllerManager struct {
	*Config

	// CtrlMgr manage all controllers that should be running when as leader
	CtrlMgr ctrl.Manager

	// SubsidiarySyncMgr manage all controllers that should be running as subsidiary
	SubsidiarySyncMgr *multicluster.SyncMgr
}

func NewCtrlMgrWithOpts

func NewCtrlMgrWithOpts(options *Config) *ControllerManager

func (*ControllerManager) Initialize

func (m *ControllerManager) Initialize() error

func (*ControllerManager) Run

func (m *ControllerManager) Run(stop <-chan struct{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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