Ensure workflow list leverages persistent namespace flag

This commit is contained in:
Alan Meadows
2019-05-20 14:45:30 -07:00
parent 3566507284
commit 91437a8041

View File

@@ -31,7 +31,7 @@ func NewWorkflowListCommand(out io.Writer, args []string) *cobra.Command {
panic(err.Error())
}
wflist, err := clientSet.Workflows("default").List(v1.ListOptions{})
wflist, err := clientSet.Workflows(namespace).List(v1.ListOptions{})
if err != nil {
panic(err.Error())
}