configmap

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	// contains filtered or unexported fields
}

Backend implements ConfigMap backend for kube_config_manager

func New

func New(logger dlogger.Logger, kubeClient *client.Client, namespace, name string) *Backend

New initializes backend for kube_config_manager based on ConfigMap with modules values

func (Backend) LoadConfig

func (b Backend) LoadConfig(ctx context.Context) (*config.KubeConfig, error)

LoadConfig gets config from ConfigMap before starting informer. Set checksums for global section and modules.

func (Backend) SaveConfigValues

func (b Backend) SaveConfigValues(ctx context.Context, key string, values utils.Values) (string, error)

SaveConfigValues saves patches in the ConfigMap

func (Backend) StartInformer

func (b Backend) StartInformer(ctx context.Context, eventC chan config.Event)

Jump to

Keyboard shortcuts

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