Skip to content

Commit

Permalink
Add ClusterRole field in the multicluster option
Browse files Browse the repository at this point in the history
  • Loading branch information
iawia002 committed Mar 7, 2022
1 parent 19048d5 commit ca4661a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/simple/client/multicluster/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const (

type Options struct {
// Enable
// Deprecated: this field will be removed in the future version, use ClusterRole instead.
Enable bool `json:"enable" yaml:"enable"`
EnableFederation bool `json:"enableFederation,omitempty" yaml:"enableFederation,omitempty"`

Expand All @@ -57,6 +58,10 @@ type Options struct {
// ClusterName is the name of the current cluster,
// this value will be set by the cluster-controller and stored in the kubesphere-config configmap.
ClusterName string `json:"clusterName,omitempty" yaml:"clusterName,omitempty"`

// ClusterRole is the role of the current cluster,
// available values: host, member.
ClusterRole string `json:"clusterRole,omitempty" yaml:"clusterRole,omitempty"`
}

// NewOptions returns a default nil options
Expand Down

0 comments on commit ca4661a

Please sign in to comment.