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:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user