Skip to content

Commit

Permalink
add watchnamespace function (#520)
Browse files Browse the repository at this point in the history
* add watchnamespace function

* change Env Variable Name

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: Shubham Gupta <[email protected]>
Co-authored-by: Shubham Gupta <[email protected]>
  • Loading branch information
progmatv and shubham-cmyk authored Jun 15, 2023
1 parent 3727017 commit 21d4f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func main() {
LeaderElectionID: "6cab913b.redis.opstreelabs.in",
}

if ns := os.Getenv("NAMESPACE"); ns != "" {
if ns := os.Getenv("WATCH_NAMESPACE"); ns != "" {
options.Namespace = ns
}

Expand Down

0 comments on commit 21d4f85

Please sign in to comment.