Documentation ¶
Index ¶
- type ModuleConfigBackend
- func (mc ModuleConfigBackend) LoadConfig(ctx context.Context) (*config.KubeConfig, error)
- func (mc ModuleConfigBackend) SaveConfigValues(_ context.Context, moduleName string, values utils.Values) (string, error)
- func (mc ModuleConfigBackend) StartInformer(ctx context.Context, eventC chan config.Event)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModuleConfigBackend ¶
type ModuleConfigBackend struct {
// contains filtered or unexported fields
}
func New ¶
func New(config *rest.Config, logger logger.Logger) *ModuleConfigBackend
New returns native(Deckhouse) implementation for addon-operator's KubeConfigManager which works directly with deckhouse.io/ModuleConfig, avoiding moving configs to the ConfigMap
func (ModuleConfigBackend) LoadConfig ¶
func (mc ModuleConfigBackend) LoadConfig(ctx context.Context) (*config.KubeConfig, error)
func (ModuleConfigBackend) SaveConfigValues ¶
func (mc ModuleConfigBackend) SaveConfigValues(_ context.Context, moduleName string, values utils.Values) (string, error)
SaveConfigValues saving patches in ModuleConfigBackend. Used for settings-conversions
func (ModuleConfigBackend) StartInformer ¶
func (mc ModuleConfigBackend) StartInformer(ctx context.Context, eventC chan config.Event)
Click to show internal directories.
Click to hide internal directories.