Add filter support for stack ps and services with Kubernetes

Signed-off-by: Mathieu Champlon <mathieu.champlon@docker.com>
This commit is contained in:
Simon Ferquel
2018-04-24 12:28:08 +02:00
committed by Mathieu Champlon
parent fd6165399d
commit 1f7aa1c036
25 changed files with 365 additions and 11973 deletions

View File

@ -37,7 +37,6 @@ func newServicesCommand(dockerCli command.Cli) *cobra.Command {
flags.BoolVarP(&opts.Quiet, "quiet", "q", false, "Only display IDs")
flags.StringVar(&opts.Format, "format", "", "Pretty-print services using a Go template")
flags.VarP(&opts.Filter, "filter", "f", "Filter output based on conditions provided")
flags.SetAnnotation("filter", "swarm", nil)
kubernetes.AddNamespaceFlag(flags)
return cmd
}