Skip to content

Commit 00b59b7

Browse files
committed
Fix label selector flag
Refacto commit from 3h agos broke passing that value from cli flags.
1 parent 1403abe commit 00b59b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/flags.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func init() {
9494
bindPFlag("exclude-having-owner-ref", "exclude-having-owner-ref")
9595

9696
RootCmd.PersistentFlags().StringVarP(&selector, "filter", "l", "", "Label selector. Select only objects matching the label")
97-
bindPFlag("selector", "selector")
97+
bindPFlag("filter", "filter")
9898

9999
RootCmd.PersistentFlags().IntVarP(&healthP, "healthcheck-port", "p", 0, "Port for answering healthchecks on /health url")
100100
bindPFlag("healthcheck-port", "healthcheck-port")

0 commit comments

Comments
 (0)