File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ func main() {
6262 HealthProbeBindAddress : options .HealthProbeBindAddress ,
6363 }
6464
65- if options .ScopedNamespace != "" {
66- opt .Namespace = options .ScopedNamespace
65+ if options .WatchNamespace != "" {
66+ opt .Namespace = options .WatchNamespace
6767 }
6868
6969 // Create a new Cmd to provide shared dependencies and start components
Original file line number Diff line number Diff line change 5252 // HealthProbeBindAddress is the TCP address that the controller should bind to for serving health probes.
5353 HealthProbeBindAddress = ":8081"
5454
55- ScopedNamespace = os .Getenv ("SCOPED_NAMESPACE" )
55+ // WatchNamespace sets the Namespace field, which restricts the manager's cache to watch objects in the desired namespace.
56+ WatchNamespace = os .Getenv ("WATCH_NAMESPACE" )
5657)
5758
5859func namespace () string {
You can’t perform that action at this time.
0 commit comments