Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( VerboseDebug bool // ConfigUpdated chan receives a new Config when global values are changed ConfigUpdated chan Config // ModuleConfigsUpdated chan receives a list of all ModuleConfig in configData. Updated items marked as IsUpdated. ModuleConfigsUpdated chan ModuleConfigs )
Functions ¶
Types ¶
type Config ¶
type Config struct { Values utils.Values ModuleConfigs ModuleConfigs }
type GlobalKubeConfig ¶
func GetGlobalKubeConfigFromConfigData ¶
func GetGlobalKubeConfigFromConfigData(configData map[string]string) (*GlobalKubeConfig, error)
func GetGlobalKubeConfigFromValues ¶
func GetGlobalKubeConfigFromValues(values utils.Values) (*GlobalKubeConfig, error)
type KubeConfigManager ¶
type KubeConfigManager interface { WithContext(ctx context.Context) WithKubeClient(client klient.Client) WithNamespace(namespace string) WithConfigMapName(configMap string) WithValuesChecksumsAnnotation(annotation string) SetKubeGlobalValues(values utils.Values) error SetKubeModuleValues(moduleName string, values utils.Values) error Init() error Start() Stop() InitialConfig() *Config CurrentConfig() *Config }
func NewKubeConfigManager ¶
func NewKubeConfigManager() KubeConfigManager
type ModuleConfigs ¶
type ModuleConfigs map[string]utils.ModuleConfig
func (ModuleConfigs) Names ¶
func (m ModuleConfigs) Names() []string
type ModuleKubeConfig ¶
type ModuleKubeConfig struct { utils.ModuleConfig Checksum string ConfigData map[string]string }
func ExtractModuleKubeConfig ¶
func ExtractModuleKubeConfig(moduleName string, configData map[string]string) (*ModuleKubeConfig, error)
TODO make a method of KubeConfig ExtractModuleKubeConfig returns ModuleKubeConfig with values loaded from ConfigMap
func GetModuleKubeConfigFromValues ¶
func GetModuleKubeConfigFromValues(moduleName string, values utils.Values) (*ModuleKubeConfig, error)
TODO make a method of KubeConfig
Click to show internal directories.
Click to hide internal directories.