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
Click to show internal directories.
Click to hide internal directories.