Documentation ¶
Index ¶
- Constants
- func Cleanup(cmd *cobra.Command, cleanOpts *CleanOptions) error
- func ConvertMemberTokenSecret(secret *corev1.Secret) *corev1.Secret
- func CreateClusterClaim(cmd *cobra.Command, k8sClient client.Client, namespace string, ...) error
- func CreateClusterSet(cmd *cobra.Command, k8sClient client.Client, namespace string, ...) error
- func CreateMemberToken(cmd *cobra.Command, k8sClient client.Client, name string, namespace string, ...) error
- func DeleteMemberToken(cmd *cobra.Command, k8sClient client.Client, name string, namespace string) error
- func NewClient(cmd *cobra.Command) (client.Client, error)
- func OutputJoinConfig(cmd *cobra.Command, writer io.Writer, ...) error
- func OutputMemberTokenSecret(tokenSecret *corev1.Secret, writer io.Writer) error
- func Rollback(cmd *cobra.Command, k8sClient client.Client, res []map[string]interface{}) error
- type CleanOptions
- type ClusterSetJoinConfig
- type FakeCtrlRuntimeClient
- func (fc FakeCtrlRuntimeClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (fc FakeCtrlRuntimeClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (fc FakeCtrlRuntimeClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
Constants ¶
View Source
const ( ClusterSetJoinConfigAPIVersion = "multicluster.antrea.io/v1alpha1" ClusterSetJoinConfigKind = "ClusterSetJoinConfig" CreateByAntctlAnnotation = "multicluster.antrea.io/created-by-antctl" DefaultMemberNamespace = "kube-system" DefaultLeaderNamespace = "antrea-multicluster" )
Variables ¶
This section is empty.
Functions ¶
func ConvertMemberTokenSecret ¶ added in v1.9.0
ConvertMemberTokenSecret generates a token Secret manifest for creating the input Secret in a member cluster.
func CreateClusterClaim ¶
func CreateClusterSet ¶
func CreateMemberToken ¶
func DeleteMemberToken ¶ added in v1.9.0
func OutputJoinConfig ¶ added in v1.9.0
func OutputMemberTokenSecret ¶ added in v1.10.0
Types ¶
type CleanOptions ¶
type ClusterSetJoinConfig ¶ added in v1.9.0
type ClusterSetJoinConfig struct { APIVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` 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"` }
"omitempty" fields (clusterID, namespace, tokenSecretName, tokenSecretFile) can be populated by the corresponding command line options if not set in the config file.
type FakeCtrlRuntimeClient ¶ added in v1.9.0
func (FakeCtrlRuntimeClient) Create ¶ added in v1.9.0
func (fc FakeCtrlRuntimeClient) Create( ctx context.Context, obj client.Object, opts ...client.CreateOption) error
func (FakeCtrlRuntimeClient) Delete ¶ added in v1.9.0
func (fc FakeCtrlRuntimeClient) Delete( ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
func (FakeCtrlRuntimeClient) Update ¶ added in v1.9.0
func (fc FakeCtrlRuntimeClient) Update( ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
Click to show internal directories.
Click to hide internal directories.