From d49a47e3a8a59d5eb48931acc25dca0e2728cf7c Mon Sep 17 00:00:00 2001 From: Dmitriy Kalinin Date: Wed, 6 Nov 2019 10:45:23 -0500 Subject: [PATCH] fix filter example --- pkg/kapp/cmd/tools/resource_filter_flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kapp/cmd/tools/resource_filter_flags.go b/pkg/kapp/cmd/tools/resource_filter_flags.go index 76e44a28a..65893a2b3 100644 --- a/pkg/kapp/cmd/tools/resource_filter_flags.go +++ b/pkg/kapp/cmd/tools/resource_filter_flags.go @@ -23,7 +23,7 @@ func (s *ResourceFilterFlags) Set(cmd *cobra.Command) { cmd.Flags().StringSliceVar(&s.rf.KindNamespaces, "filter-kind-ns", nil, "Set kind-namespace filter (example: Pod/, Pod/knative-serving) (can repeat)") cmd.Flags().StringSliceVar(&s.rf.KindNsNames, "filter-kind-ns-name", nil, "Set kind-namespace-name filter (example: Deployment/knative-serving/controller) (can repeat)") - cmd.Flags().StringVar(&s.bf, "filter", "", `Set filter (example: {"and":[{"not":{"resource":{"kind":"foo%"}}},{"resource":{"kind":"!foo"}}]})`) + cmd.Flags().StringVar(&s.bf, "filter", "", `Set filter (example: {"and":[{"not":{"resource":{"kinds":["foo%"]}}},{"resource":{"kinds":["!foo"]}}]})`) } func (s *ResourceFilterFlags) ResourceFilter() (ctlres.ResourceFilter, error) {