Merge pull request #2158 from RainbowMango/pr_update_misleading_comments
Fixed misleading or outdate comments about --cluster-namespace flag
This commit is contained in:
commit
65cec65513
|
@ -105,7 +105,7 @@ type CommandGetOptions struct {
|
|||
// global flags
|
||||
options.GlobalCommandOptions
|
||||
|
||||
// ClusterNamespace holds the namespace name where the member cluster objects are stored.
|
||||
// ClusterNamespace holds the namespace name where the member cluster secrets are stored.
|
||||
ClusterNamespace string
|
||||
|
||||
Clusters []string
|
||||
|
@ -608,7 +608,7 @@ func (g *CommandGetOptions) watch(watchObjs []WatchObj) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
//watchMultiClusterObj watch objects in multi clusters by goroutines
|
||||
// watchMultiClusterObj watch objects in multi clusters by goroutines
|
||||
func (g *CommandGetOptions) watchMultiClusterObj(watchObjs []WatchObj, mapping *meta.RESTMapping, outputObjects *bool, printer printers.ResourcePrinterFunc) {
|
||||
var wg sync.WaitGroup
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ func joinExample(parentCommand string) string {
|
|||
type CommandJoinOption struct {
|
||||
options.GlobalCommandOptions
|
||||
|
||||
// ClusterNamespace holds the namespace name where the member cluster objects are stored.
|
||||
// ClusterNamespace holds the namespace name where the member cluster secrets are stored.
|
||||
ClusterNamespace string
|
||||
|
||||
// ClusterName is the cluster's name that we are going to join with.
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"github.com/spf13/pflag"
|
||||
)
|
||||
|
||||
//DefaultKarmadaClusterNamespace defines the default namespace where the member cluster secrets are stored.
|
||||
// DefaultKarmadaClusterNamespace defines the default namespace where the member cluster secrets are stored.
|
||||
const DefaultKarmadaClusterNamespace = "karmada-cluster"
|
||||
|
||||
// DefaultKarmadactlCommandDuration defines the default timeout for karmadactl execute
|
||||
|
|
|
@ -95,7 +95,7 @@ type CommandPromoteOption struct {
|
|||
// Cluster is the name of legacy cluster
|
||||
Cluster string
|
||||
|
||||
// ClusterNamespace holds the namespace name where the member cluster objects are stored.
|
||||
// ClusterNamespace holds the namespace name where the member cluster secrets are stored.
|
||||
ClusterNamespace string
|
||||
|
||||
// Namespace is the namespace of legacy resource
|
||||
|
|
|
@ -73,7 +73,7 @@ func unjoinExample(parentCommand string) string {
|
|||
type CommandUnjoinOption struct {
|
||||
options.GlobalCommandOptions
|
||||
|
||||
// ClusterNamespace holds the namespace name where the member cluster objects are stored.
|
||||
// ClusterNamespace holds namespace where the member cluster secrets are stored
|
||||
ClusterNamespace string
|
||||
|
||||
// ClusterName is the cluster's name that we are going to join with.
|
||||
|
|
Loading…
Reference in New Issue