Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateCmd = &cobra.Command{
Use: "create",
Short: "Create multi-cluster resources",
}
View Source
var DeployCmd = &cobra.Command{
Use: "deploy",
Short: "Deploy Antrea Multi-cluster Controller to a leader or member cluster",
}
View Source
var DestroyCmd = NewDestroyCommand()
View Source
var GetCmd = &cobra.Command{
Use: "get",
Short: "Display one or many resources in a ClusterSet",
}
View Source
var InitCmd = NewInitCommand()
View Source
var JoinCmd = NewJoinCommand()
View Source
var LeaveCmd = NewLeaveCommand()
Functions ¶
func NewDestroyCommand ¶ added in v1.8.0
func NewInitCommand ¶ added in v1.8.0
func NewJoinCommand ¶ added in v1.8.0
func NewLeaveCommand ¶ added in v1.8.0
Types ¶
type ClusterSetJoinConfig ¶ added in v1.8.0
type ClusterSetJoinConfig struct { Kind string `yaml:"kind"` APIVersion string `yaml:"apiVersion"` ClusterSetID string `yaml:"clusterSetID"` ClusterID string `yaml:"clusterID,omitempty"` Namespace string `yaml:"namespace,omitempty"` LeaderClusterID string `yaml:"leaderClusterID"` LeaderNamespace string `yaml:"leaderNamespace"` LeaderAPIServer string `yaml:"leaderAPIServer"` TokenSecretName string `yaml:"tokenSecretName,omitempty"` TokenSecretFile string `yaml:"tokenSecretFile,omitempty"` // The following fields are not included in the config file. ConfigFile string `yaml:"-"` Secret *v1.Secret `yaml:"-"` }
"omitempty" fields (clusterID, namespace, tokenSecretName, tokenSecretFile) can be populated by the corresponding command line options if not set in the config file.
Click to show internal directories.
Click to hide internal directories.