Documentation ¶
Index ¶
Constants ¶
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" )
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 ¶
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 ¶
func (cp *ConfigMapControllerConfigProvider) GetConfig() (ControllerConfig, error)
GetConfig provides the most current controller config
type ControllerConfig ¶
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