mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 13:52:58 +02:00
use clear name for env var denoting namespace to watch (#129)
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ func init() {
|
||||
flag.BoolVar(&config.NoTeamsAPI, "noteamsapi", false, "Disable all access to the teams API")
|
||||
flag.Parse()
|
||||
|
||||
config.Namespace = os.Getenv("MY_POD_NAMESPACE")
|
||||
config.Namespace = os.Getenv("WATCH_NAMESPACE")
|
||||
if config.Namespace == "" {
|
||||
config.Namespace = "default"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user