We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 254cc1c commit 7f2632aCopy full SHA for 7f2632a
main.go
@@ -124,9 +124,12 @@ func main() {
124
watchedNamespaces := make(map[string]cache.Config)
125
if namespaces != "" {
126
namespaceList = strings.Split(namespaces, ",")
127
- for i := range namespaceList {
128
- watchedNamespaces[strings.TrimSpace(namespaceList[i])] = cache.Config{}
129
- }
+ } else {
+ namespaces = os.Getenv("WATCH_NAMESPACE")
+ namespaceList = strings.Split(namespaces, ",")
130
+ }
131
+ for i := range namespaceList {
132
+ watchedNamespaces[strings.TrimSpace(namespaceList[i])] = cache.Config{}
133
}
134
135
// hash the watched namespaces to allow for more than one operator deployment per namespace
0 commit comments