Remove setting the actual watched namespace as env var (os.Setenv won't work)

This commit is contained in:
Sergey Dudoladov 2018-02-06 17:40:06 +01:00
parent 8b7bbde06e
commit 74a1e9661b
1 changed files with 0 additions and 3 deletions

View File

@ -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"
}