Fix disabling database access and teams API via command-line options. (#351)
This commit is contained in:
parent
0181a1b5b1
commit
f27833b5eb
|
|
@ -114,10 +114,10 @@ func (c *Controller) modifyConfigFromEnvironment() {
|
||||||
c.opConfig.WatchedNamespace = c.getEffectiveNamespace(os.Getenv("WATCHED_NAMESPACE"), c.opConfig.WatchedNamespace)
|
c.opConfig.WatchedNamespace = c.getEffectiveNamespace(os.Getenv("WATCHED_NAMESPACE"), c.opConfig.WatchedNamespace)
|
||||||
|
|
||||||
if c.config.NoDatabaseAccess {
|
if c.config.NoDatabaseAccess {
|
||||||
c.opConfig.EnableDBAccess = c.config.NoDatabaseAccess
|
c.opConfig.EnableDBAccess = false
|
||||||
}
|
}
|
||||||
if c.config.NoTeamsAPI {
|
if c.config.NoTeamsAPI {
|
||||||
c.opConfig.EnableTeamsAPI = c.config.NoTeamsAPI
|
c.opConfig.EnableTeamsAPI = false
|
||||||
}
|
}
|
||||||
scalyrAPIKey := os.Getenv("SCALYR_API_KEY")
|
scalyrAPIKey := os.Getenv("SCALYR_API_KEY")
|
||||||
if scalyrAPIKey != "" {
|
if scalyrAPIKey != "" {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue