mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-18 10:08:40 +02:00
Fix disabling database access and teams API via command-line options. (#351)
This commit is contained in:
committed by
zerg-junior
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 != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user