-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugin): add support to fetch ns from kubeconfig context
If '--namespace-from-context' flag is set then we fetch ns from the kubeconfig context. Its hidden to users now. Incase user has not given -n flag and --namespace-from-context we default to "mayastor". If they have used --namespace-from-context flag then we get ns from kubeconfig. If kubeconfig path is specified then we use client of that kubeconfig or else we get default kubeconfig client. Signed-off-by: Abhilash Shetty <[email protected]>
- Loading branch information
1 parent
c07c05c
commit a63a983
Showing
3 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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