Skip to content

Commit

Permalink
cmd/kube-rbac-proxy/app: replace func with cobra.NoArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
liouk committed May 31, 2023
1 parent 653ccba commit 71da752
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions cmd/kube-rbac-proxy/app/kube-rbac-proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,7 @@ that can perform RBAC authorization against the Kubernetes API using SubjectAcce

return Run(completedOptions)
},
Args: func(cmd *cobra.Command, args []string) error {
for _, arg := range args {
if len(arg) > 0 {
return fmt.Errorf("%q does not take any arguments, got %q", cmd.CommandPath(), args)
}
}
return nil
},
Args: cobra.NoArgs,
}

fs := cmd.Flags()
Expand Down

0 comments on commit 71da752

Please sign in to comment.