config

package
v0.0.0-...-4747e9d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppConfig = types.ConfigMap{}

Functions

func Load

func Load() (*types.ConfigMap, error)

Load will load configuration from k8s config map. If it did not find any then it will fall back to config map provided with binary

func ReadConfigData

func ReadConfigData(name string, envvar string, fallback string) ([]byte, error)

ReadConfigData will read the data from a k8s config map.

If it did not find any then it will fall back to a file provided with binary.
Name: descriptive string for log messages
Envvar: the name of the environment var where the relative path to the config file is stored

Types

This section is empty.

Jump to

Keyboard shortcuts

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