Merge pull request #2190 from carlory/fix-karmadactlget

remove unused flag for karmadactl get
This commit is contained in:
karmada-bot 2022-07-15 16:06:39 +08:00 committed by GitHub
commit 0432fba76d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -90,7 +90,6 @@ func NewCmdGet(karmadaConfig KarmadaConfig, parentCommand string) *cobra.Command
cmd.Flags().StringVarP(&o.Namespace, "namespace", "n", o.Namespace, "-n=namespace or -n namespace")
cmd.Flags().StringVarP(&o.LabelSelector, "labels", "l", "", "-l=label or -l label")
cmd.Flags().StringSliceVarP(&o.Clusters, "clusters", "C", []string{}, "-C=member1,member2")
cmd.Flags().StringVar(&o.ClusterNamespace, "cluster-namespace", options.DefaultKarmadaClusterNamespace, "Namespace in the control plane where member cluster secrets are stored.")
cmd.Flags().BoolVarP(&o.AllNamespaces, "all-namespaces", "A", o.AllNamespaces, "If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.")
cmd.Flags().BoolVar(&o.IgnoreNotFound, "ignore-not-found", o.IgnoreNotFound, "If the requested object does not exist the command will return exit code 0.")
cmd.Flags().BoolVarP(&o.Watch, "watch", "w", o.Watch, "After listing/getting the requested object, watch for changes. Uninitialized objects are excluded if no object name is provided.")
@ -105,9 +104,6 @@ type CommandGetOptions struct {
// global flags
options.GlobalCommandOptions
// ClusterNamespace holds the namespace name where the member cluster secrets are stored.
ClusterNamespace string
Clusters []string
PrintFlags *get.PrintFlags