config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.2.0

type Config struct {
	ConfigMap v1.ConfigMap
}

Config stores runtime configuration

func New added in v0.2.0

func New(configMap v1.ConfigMap) Config

New creates new Config

func (*Config) String added in v0.2.0

func (c *Config) String() string

String returns string representation of the config

type Provider added in v0.2.0

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

Provider is responsible for providing the current config

func NewConfigProvider added in v0.2.0

func NewConfigProvider(stopCh chan struct{}, clientset kubernetes.Interface, configMapNamespace string, configMapName string) Provider

NewConfigProvider creates config provider that will ensure that the provided config is up to date

func (*Provider) GetBareConfig added in v0.2.0

func (cp *Provider) GetBareConfig(configMapName string) (Config, error)

GetBareConfig provides the most current config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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