-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle the case when listing namespaces is forbidden (#42)
* Handle the case when listing namespaces is forbidden Ignore a forbidden error as that means we can connect to the api server Do not try to watch at cluster level when we only need one namespace Fixes #12 * Use the namespace if set for deployments, daemonsets,... * If we can't get the namespace then revert to watch all to keep existing behavior if the namespace does not exist we watch namespaces to wait for it
- Loading branch information
Showing
2 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters