featureconfig

package
v1.14.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FeatureConfigFile = "/etc/config/config.yaml"
	CanaryFeature     = "canary"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CanaryFeatureConfig

type CanaryFeatureConfig struct {
	IsEnabled     bool   `json:"enabled"`
	PrometheusSvc string `json:"prometheusSvc"`
}

specific feature config

type FeatureConfig

type FeatureConfig struct {
	// In the future more such feature configs can be added here for each optional feature
	CanaryConfig CanaryFeatureConfig `json:"canary"`
}

func GetFeatureConfig

func GetFeatureConfig() (*FeatureConfig, error)

GetFeatureConfig reads the configMap file and unmarshals the config into a feature config struct

Jump to

Keyboard shortcuts

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