Restrict operator to single watched namespace via env var

This commit is contained in:
Sergey Dudoladov
2018-02-07 16:44:49 +01:00
parent f194a2ae5a
commit 74fa7b9492
5 changed files with 30 additions and 14 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ type Config struct {
Resources
Auth
Scalyr
WatchedNamespace string `name:"watched_namespace"`
WatchedNamespace string `name:"watched_namespace"` // may be v1.NamespaceAll, meaning watch all namespaces
EtcdHost string `name:"etcd_host" default:"etcd-client.default.svc.cluster.local:2379"`
DockerImage string `name:"docker_image" default:"registry.opensource.zalan.do/acid/spiloprivate-9.6:1.2-p4"`
ServiceAccountName string `name:"service_account_name" default:"operator"`