controller

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OsConfigMapNamespaceKey defines the configuration key for the OS mapping config map namespace
	OsConfigMapNamespaceKey = "osConfigMap.namespace"

	// OsConfigMapNameKey defines the configuration key for the OS mapping config map name
	OsConfigMapNameKey = "osConfigMap.name"
)
View Source
const (
	// ConfigMapName defines the name of the controller config map
	ConfigMapName = "vm-import-controller-config"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapControllerConfigProvider

type ConfigMapControllerConfigProvider struct {
	config.Provider
}

ConfigMapControllerConfigProvider is responsible for providing the current controller config

func NewControllerConfigProvider

func NewControllerConfigProvider(stopCh chan struct{}, clientset kubernetes.Interface, controllerNamespace string) ConfigMapControllerConfigProvider

NewControllerConfigProvider creates new controller config provider that will ensure that the provided config is up to date

func (*ConfigMapControllerConfigProvider) GetConfig

GetConfig provides the most current controller config

type ControllerConfig

type ControllerConfig struct {
	config.Config
}

ControllerConfig stores controller runtime configuration

func NewControllerConfigFrom

func NewControllerConfigFrom(config config.Config) ControllerConfig

NewControllerConfigFrom creates new controller config from given Config

func (ControllerConfig) OsConfigMapName

func (c ControllerConfig) OsConfigMapName() string

OsConfigMapName provides name of the the OS mapping ConfigMap. Empty string is returned when the name is not present.

func (ControllerConfig) OsConfigMapNamespace

func (c ControllerConfig) OsConfigMapNamespace() string

OsConfigMapNamespace provides namespace where the OS mapping ConfigMap resides. Empty string is returned when the namespace is not present.

type ControllerConfigProvider

type ControllerConfigProvider interface {
	GetConfig() (ControllerConfig, error)
}

ControllerConfigProvider defines controller config access operations

Jump to

Keyboard shortcuts

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