Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Prajithp committed Feb 13, 2021
1 parent 9f6c107 commit 8757836
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
import kubernetes
import os

WATCH_NAMESPACE = os.getenv('WATCH_NAMESPACE')
all_namespaces = []
if WATCH_NAMESPACE is not None:
all_namespaces = WATCH_NAMESPACE.split(',')

WATCH_NAMESPACE = os.getenv('WATCH_NAMESPACE', "")
all_namespaces = WATCH_NAMESPACE.split(',')
def watch_namespace(namespace, **_):
if WATCH_NAMESPACE == "" or namespace in all_namespaces:
return True
Expand Down

0 comments on commit 8757836

Please sign in to comment.