Skip to content

Commit f27833b

Browse files
alexeyklyukinsdudoladov
authored andcommitted
Fix disabling database access and teams API via command-line options. (zalando#351)
1 parent 0181a1b commit f27833b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/controller/controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ func (c *Controller) modifyConfigFromEnvironment() {
114114
c.opConfig.WatchedNamespace = c.getEffectiveNamespace(os.Getenv("WATCHED_NAMESPACE"), c.opConfig.WatchedNamespace)
115115

116116
if c.config.NoDatabaseAccess {
117-
c.opConfig.EnableDBAccess = c.config.NoDatabaseAccess
117+
c.opConfig.EnableDBAccess = false
118118
}
119119
if c.config.NoTeamsAPI {
120-
c.opConfig.EnableTeamsAPI = c.config.NoTeamsAPI
120+
c.opConfig.EnableTeamsAPI = false
121121
}
122122
scalyrAPIKey := os.Getenv("SCALYR_API_KEY")
123123
if scalyrAPIKey != "" {

0 commit comments

Comments
 (0)