Documentation
¶
Index ¶
- Constants
- type ConfigMapControllerConfigProvider
- type ControllerConfig
- func (c ControllerConfig) ImportWithoutTemplateEnabled() bool
- func (c ControllerConfig) OsConfigMapName() string
- func (c ControllerConfig) OsConfigMapNamespace() string
- func (c ControllerConfig) WarmImportConsecutiveFailures() int
- func (c ControllerConfig) WarmImportIntervalMinutes() int
- func (c ControllerConfig) WarmImportMaxFailures() int
- type ControllerConfigProvider
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" // WarmImportMaxFailuresKey defines the total number of failures to tolerate before failing the warm import WarmImportMaxFailuresKey = "warmImport.maxFailures" // WarmImportConsecutiveFailuresKey defines the number of consecutive failures to tolerate before failing the warm import WarmImportConsecutiveFailuresKey = "warmImport.consecutiveFailures" // WarmImportIntervalMinutesKey defines how long to wait between warm import iterations WarmImportIntervalMinutesKey = "warmImport.intervalMinutes" // ImportWithoutTemplateKey defines whether imports are permitted to run if an Openshift VM template can't be found. ImportWithoutTemplateKey = "importWithoutTemplate" )
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) ImportWithoutTemplateEnabled ¶ added in v0.4.0
func (c ControllerConfig) ImportWithoutTemplateEnabled() bool
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.
func (ControllerConfig) WarmImportConsecutiveFailures ¶ added in v0.3.0
func (c ControllerConfig) WarmImportConsecutiveFailures() int
func (ControllerConfig) WarmImportIntervalMinutes ¶ added in v0.3.0
func (c ControllerConfig) WarmImportIntervalMinutes() int
func (ControllerConfig) WarmImportMaxFailures ¶ added in v0.3.0
func (c ControllerConfig) WarmImportMaxFailures() int
type ControllerConfigProvider ¶
type ControllerConfigProvider interface {
GetConfig() (ControllerConfig, error)
}
ControllerConfigProvider defines controller config access operations