Use informer for kube watcher handling with multiple namespace support (#2594)

* changes to add informer for kube watcher
* code refactor and fix cli issue for deleting watch
This commit is contained in:
Shubham Bansal
2022-11-02 19:10:06 +05:30
committed by GitHub
parent b9fa6ca20a
commit f37e9e6f89
4 changed files with 31 additions and 76 deletions
+2 -2
View File
@@ -43,8 +43,8 @@ func Commands() *cobra.Command {
RunE: wrapper.Wrapper(Delete),
}
wrapper.SetFlags(deleteCmd, flag.FlagSet{
Required: []flag.Flag{flag.KwFnName},
Optional: []flag.Flag{flag.NamespaceTrigger, flag.IgnoreNotFound},
Required: []flag.Flag{flag.KwName},
Optional: []flag.Flag{flag.NamespaceTrigger, flag.IgnoreNotFound, flag.KwFnName},
})
listCmd := &cobra.Command{