Skip to content

Commit 39f32a0

Browse files
dhhuynh2milero
authored andcommitted
Changed variable name to watch namespaces
1 parent 66bebfa commit 39f32a0

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

cmd/wordpress-operator/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

pkg/cmd/options/options.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ var (
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

5859
func namespace() string {

0 commit comments

Comments
 (0)