mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 22:46:52 +02:00
Remove setting the actual watched namespace as env var (os.Setenv won't work)
This commit is contained in:
@@ -109,9 +109,6 @@ func (c *Controller) initOperatorConfig() {
|
||||
configMapData["watched_namespace"] = v1.NamespaceDefault
|
||||
}
|
||||
|
||||
// display the actual namespace in case someone checks the value manually
|
||||
os.Setenv("WATCHED_NAMESPACE", configMapData["watched_namespace"])
|
||||
|
||||
if c.config.NoDatabaseAccess {
|
||||
configMapData["enable_database_access"] = "false"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user