Merge pull request #2190 from carlory/fix-karmadactlget
remove unused flag for karmadactl get
This commit is contained in:
commit
0432fba76d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue