v1alpha1

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=multicluster.crd.antrea.io

Package v1alpha1 contains API Schema definitions for the multicluster v1alpha1 API group +kubebuilder:object:generate=true +groupName=multicluster.crd.antrea.io

Index

Constants

View Source
const (
	PrecedencePrivate  = "private"
	PrecedencePublic   = "public"
	PrecedenceInternal = "internal"
	PrecedenceExternal = "external"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "multicluster.crd.antrea.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = GroupVersion

SchemeGroupVersion is group version used to register these objects.

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ClusterCondition

type ClusterCondition struct {
	Type ClusterConditionType `json:"type,omitempty"`
	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status,omitempty"`

	// +optional
	// Last time the condition transited from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// +optional
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
	// +optional
	// Unique, one-word, CamelCase reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
}

ClusterCondition indicates the readiness condition of a cluster.

func (*ClusterCondition) DeepCopy

func (in *ClusterCondition) DeepCopy() *ClusterCondition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCondition.

func (*ClusterCondition) DeepCopyInto

func (in *ClusterCondition) DeepCopyInto(out *ClusterCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterConditionType

type ClusterConditionType string
const (
	// ClusterReady indicates whether cluster is ready and connected.
	ClusterReady ClusterConditionType = "Ready"
	// ClusterIsLeader indicates whether the cluster is the leader of the local cluster.
	// Used in member clusters only.
	ClusterIsLeader ClusterConditionType = "IsLeader"
	// ClusterConnected indicates whether the member cluster has connected to the
	// local cluster as the leader.
	// Used in leader clusters only.
	ClusterConnected ClusterConditionType = "ClusterConnected"
)

type ClusterInfo added in v1.7.0

type ClusterInfo struct {
	// ClusterID of the member cluster.
	ClusterID string `json:"clusterID,omitempty"`
	// ServiceCIDR is the IP ranges used by Service ClusterIP.
	ServiceCIDR string `json:"serviceCIDR,omitempty"`
	// GatewayInfos has information of Gateways
	GatewayInfos []GatewayInfo `json:"gatewayInfos,omitempty"`
	// PodCIDRs is the Pod IP address CIDRs.
	PodCIDRs []string `json:"podCIDRs,omitempty"`
}

func (*ClusterInfo) DeepCopy added in v1.7.0

func (in *ClusterInfo) DeepCopy() *ClusterInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterInfo.

func (*ClusterInfo) DeepCopyInto added in v1.7.0

func (in *ClusterInfo) DeepCopyInto(out *ClusterInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterInfoImport added in v1.7.0

type ClusterInfoImport struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ClusterInfo             `json:"spec,omitempty"`
	Status ClusterInfoImportStatus `json:"status,omitempty"`
}

+kubebuilder:printcolumn:name="Cluster ID",type=string,JSONPath=`.spec.clusterID`,description="Member Cluster ID" +kubebuilder:printcolumn:name="Service CIDR",type=string,JSONPath=`.spec.serviceCIDR`,description="Service CIDR of the cluster" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp`

func (*ClusterInfoImport) DeepCopy added in v1.7.0

func (in *ClusterInfoImport) DeepCopy() *ClusterInfoImport

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterInfoImport.

func (*ClusterInfoImport) DeepCopyInto added in v1.7.0

func (in *ClusterInfoImport) DeepCopyInto(out *ClusterInfoImport)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterInfoImport) DeepCopyObject added in v1.7.0

func (in *ClusterInfoImport) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterInfoImportList added in v1.7.0

type ClusterInfoImportList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterInfoImport `json:"items"`
}

func (*ClusterInfoImportList) DeepCopy added in v1.7.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterInfoImportList.

func (*ClusterInfoImportList) DeepCopyInto added in v1.7.0

func (in *ClusterInfoImportList) DeepCopyInto(out *ClusterInfoImportList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterInfoImportList) DeepCopyObject added in v1.7.0

func (in *ClusterInfoImportList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterInfoImportStatus added in v1.7.0

type ClusterInfoImportStatus struct {
	Conditions []ResourceCondition `json:"conditions,omitempty"`
}

ClusterInfoImportStatus defines the observed state of ClusterInfoImport.

func (*ClusterInfoImportStatus) DeepCopy added in v1.7.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterInfoImportStatus.

func (*ClusterInfoImportStatus) DeepCopyInto added in v1.7.0

func (in *ClusterInfoImportStatus) DeepCopyInto(out *ClusterInfoImportStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterSet

type ClusterSet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ClusterSetSpec   `json:"spec,omitempty"`
	Status ClusterSetStatus `json:"status,omitempty"`
}

+kubebuilder:printcolumn:name="Leader Cluster Namespace",type=string,JSONPath=`.spec.namespace`,description="The leader cluster Namespace for the ClusterSet" +kubebuilder:printcolumn:name="Total Clusters",type=string,JSONPath=`.status.totalClusters`,description="Total number of clusters in the ClusterSet" +kubebuilder:printcolumn:name="Ready Clusters",type=string,JSONPath=`.status.readyClusters`,description="Number of ready clusters in the ClusterSet" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp` ClusterSet represents a ClusterSet.

func (*ClusterSet) DeepCopy

func (in *ClusterSet) DeepCopy() *ClusterSet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSet.

func (*ClusterSet) DeepCopyInto

func (in *ClusterSet) DeepCopyInto(out *ClusterSet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterSet) DeepCopyObject

func (in *ClusterSet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterSetCondition

type ClusterSetCondition struct {
	Type ClusterSetConditionType `json:"type,omitempty"`
	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status,omitempty"`
	// +optional
	// Last time the condition transited from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// +optional
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
	// +optional
	// Unique, one-word, CamelCase reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
}

ClusterSetCondition indicates the readiness condition of the clusterSet.

func (*ClusterSetCondition) DeepCopy

func (in *ClusterSetCondition) DeepCopy() *ClusterSetCondition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSetCondition.

func (*ClusterSetCondition) DeepCopyInto

func (in *ClusterSetCondition) DeepCopyInto(out *ClusterSetCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterSetConditionType

type ClusterSetConditionType string
const (
	// ClusterSetReady indicates whether ClusterSet is ready.
	ClusterSetReady ClusterSetConditionType = "Ready"
)

type ClusterSetList

type ClusterSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterSet `json:"items"`
}

ClusterSetList contains a list of ClusterSet.

func (*ClusterSetList) DeepCopy

func (in *ClusterSetList) DeepCopy() *ClusterSetList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSetList.

func (*ClusterSetList) DeepCopyInto

func (in *ClusterSetList) DeepCopyInto(out *ClusterSetList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterSetList) DeepCopyObject

func (in *ClusterSetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterSetSpec

type ClusterSetSpec struct {
	// Members include member clusters known to the leader clusters.
	// Used in leader cluster.
	Members []MemberCluster `json:"members,omitempty"`
	// Leaders include leader clusters known to the member clusters.
	// +kubebuilder:validation:MinItems=1
	// +kubebuilder:validation:MaxItems=1
	// +kubebuilder:validation:Required
	Leaders []MemberCluster `json:"leaders"`
	// The leader cluster Namespace in which the ClusterSet is defined.
	// Used in member cluster.
	Namespace string `json:"namespace,omitempty"`
}

ClusterSetSpec defines the desired state of ClusterSet.

func (*ClusterSetSpec) DeepCopy

func (in *ClusterSetSpec) DeepCopy() *ClusterSetSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSetSpec.

func (*ClusterSetSpec) DeepCopyInto

func (in *ClusterSetSpec) DeepCopyInto(out *ClusterSetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterSetStatus

type ClusterSetStatus struct {
	// Total number of member clusters configured in the ClusterSet.
	TotalClusters int32 `json:"totalClusters,omitempty"`
	// Total number of clusters ready and connected.
	ReadyClusters int32 `json:"readyClusters,omitempty"`
	// The overall condition of the cluster set.
	Conditions []ClusterSetCondition `json:"conditions,omitempty"`
	// The status of individual member clusters.
	ClusterStatuses []ClusterStatus `json:"clusterStatuses,omitempty"`
	// The generation observed by the controller.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

ClusterSetStatus defines the observed state of ClusterSet.

func (*ClusterSetStatus) DeepCopy

func (in *ClusterSetStatus) DeepCopy() *ClusterSetStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSetStatus.

func (*ClusterSetStatus) DeepCopyInto

func (in *ClusterSetStatus) DeepCopyInto(out *ClusterSetStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterStatus

type ClusterStatus struct {
	// ClusterID is the unique identifier of this cluster.
	ClusterID  string             `json:"clusterID,omitempty"`
	Conditions []ClusterCondition `json:"conditions,omitempty"`
}

func (*ClusterStatus) DeepCopy

func (in *ClusterStatus) DeepCopy() *ClusterStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.

func (*ClusterStatus) DeepCopyInto

func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EndpointsExport

type EndpointsExport struct {
	Subsets []v1.EndpointSubset `json:"subsets,omitempty"`
}

EndpointsExport exports Endpoints.

func (*EndpointsExport) DeepCopy

func (in *EndpointsExport) DeepCopy() *EndpointsExport

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointsExport.

func (*EndpointsExport) DeepCopyInto

func (in *EndpointsExport) DeepCopyInto(out *EndpointsExport)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EndpointsImport

type EndpointsImport struct {
	Subsets []v1.EndpointSubset `json:"subsets,omitempty"`
}

EndpointsImport imports Endpoints.

func (*EndpointsImport) DeepCopy

func (in *EndpointsImport) DeepCopy() *EndpointsImport

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointsImport.

func (*EndpointsImport) DeepCopyInto

func (in *EndpointsImport) DeepCopyInto(out *EndpointsImport)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExternalEntityExport

type ExternalEntityExport struct {
	ExternalEntitySpec v1alpha2.ExternalEntitySpec `json:"externalEntitySpec,omitempty"`
}

ExternalEntityExport exports ExternalEntity.

func (*ExternalEntityExport) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalEntityExport.

func (*ExternalEntityExport) DeepCopyInto

func (in *ExternalEntityExport) DeepCopyInto(out *ExternalEntityExport)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExternalEntityImport

type ExternalEntityImport struct {
	ExternalEntitySpec *v1alpha2.ExternalEntitySpec `json:"externalentityspec,omitempty"`
}

ExternalEntityImport imports ExternalEntity.

func (*ExternalEntityImport) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalEntityImport.

func (*ExternalEntityImport) DeepCopyInto

func (in *ExternalEntityImport) DeepCopyInto(out *ExternalEntityImport)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Gateway added in v1.7.0

type Gateway struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Cross-cluster tunnel IP of the Gateway.
	GatewayIP string `json:"gatewayIP,omitempty"`
	// In-cluster tunnel IP of the Gateway.
	InternalIP string `json:"internalIP,omitempty"`
}

+kubebuilder:printcolumn:name="Gateway IP",type=string,JSONPath=`.gatewayIP`,description="Cross-cluster tunnel IP" +kubebuilder:printcolumn:name="Internal IP",type=string,JSONPath=`.internalIP`,description="In-cluster tunnel IP" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp` Gateway includes information of a Multi-cluster Gateway.

func (*Gateway) DeepCopy added in v1.7.0

func (in *Gateway) DeepCopy() *Gateway

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Gateway.

func (*Gateway) DeepCopyInto added in v1.7.0

func (in *Gateway) DeepCopyInto(out *Gateway)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Gateway) DeepCopyObject added in v1.7.0

func (in *Gateway) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GatewayInfo added in v1.7.0

type GatewayInfo struct {
	GatewayIP string `json:"gatewayIP,omitempty"`
}

GatewayInfo includes information of a Gateway.

func (*GatewayInfo) DeepCopy added in v1.7.0

func (in *GatewayInfo) DeepCopy() *GatewayInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayInfo.

func (*GatewayInfo) DeepCopyInto added in v1.7.0

func (in *GatewayInfo) DeepCopyInto(out *GatewayInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GatewayList added in v1.7.0

type GatewayList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Gateway `json:"items"`
}

func (*GatewayList) DeepCopy added in v1.7.0

func (in *GatewayList) DeepCopy() *GatewayList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayList.

func (*GatewayList) DeepCopyInto added in v1.7.0

func (in *GatewayList) DeepCopyInto(out *GatewayList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GatewayList) DeepCopyObject added in v1.7.0

func (in *GatewayList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type LabelIdentity added in v1.9.0

type LabelIdentity struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec LabelIdentitySpec `json:"spec,omitempty"`
}

+kubebuilder:printcolumn:name="Label",type=string,JSONPath=`.spec.label`,description="Normalized string of a label identity" +kubebuilder:printcolumn:name="ID",type=string,JSONPath=`.spec.id`,description="ID allocated for the label identity by the leader cluster" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp` LabelIdentity is an imported label identity from the ClusterSet. For each unique label identity, a LabelIdentity will be created in the member cluster.

func (*LabelIdentity) DeepCopy added in v1.9.0

func (in *LabelIdentity) DeepCopy() *LabelIdentity

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelIdentity.

func (*LabelIdentity) DeepCopyInto added in v1.9.0

func (in *LabelIdentity) DeepCopyInto(out *LabelIdentity)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LabelIdentity) DeepCopyObject added in v1.9.0

func (in *LabelIdentity) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type LabelIdentityExport added in v1.9.0

type LabelIdentityExport struct {
	NormalizedLabel string `json:"normalizedLabel,omitempty"`
}

func (*LabelIdentityExport) DeepCopy added in v1.9.0

func (in *LabelIdentityExport) DeepCopy() *LabelIdentityExport

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelIdentityExport.

func (*LabelIdentityExport) DeepCopyInto added in v1.9.0

func (in *LabelIdentityExport) DeepCopyInto(out *LabelIdentityExport)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LabelIdentityList added in v1.9.0

type LabelIdentityList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []LabelIdentity `json:"items"`
}

LabelIdentityList contains a list of LabelIdentity.

func (*LabelIdentityList) DeepCopy added in v1.9.0

func (in *LabelIdentityList) DeepCopy() *LabelIdentityList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelIdentityList.

func (*LabelIdentityList) DeepCopyInto added in v1.9.0

func (in *LabelIdentityList) DeepCopyInto(out *LabelIdentityList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LabelIdentityList) DeepCopyObject added in v1.9.0

func (in *LabelIdentityList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type LabelIdentitySpec added in v1.9.0

type LabelIdentitySpec struct {
	// Label is the normalized string of a label identity.
	// The format of normalized label identity is `ns:(?P<nslabels>(.)*)&pod:(?P<podlabels>(.)*)`
	// E.g., `ns:kubernetes.io/metadata.name=kube-system&pod:app=db`
	Label string `json:"label,omitempty"`
	// ID is the ID allocated for the label identity by the leader cluster.
	ID uint32 `json:"id,omitempty"`
}

func (*LabelIdentitySpec) DeepCopy added in v1.9.0

func (in *LabelIdentitySpec) DeepCopy() *LabelIdentitySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelIdentitySpec.

func (*LabelIdentitySpec) DeepCopyInto added in v1.9.0

func (in *LabelIdentitySpec) DeepCopyInto(out *LabelIdentitySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MemberCluster

type MemberCluster struct {
	// Identify member cluster in ClusterSet.
	ClusterID string `json:"clusterID,omitempty"`
	// API server of the destination cluster.
	Server string `json:"server,omitempty"`
	// Secret name to access API server of the member from the leader cluster.
	Secret string `json:"secret,omitempty"`
	// ServiceAccount used by the member cluster to access into leader cluster.
	ServiceAccount string `json:"serviceAccount,omitempty"`
}

MemberCluster defines member cluster information.

func (*MemberCluster) DeepCopy

func (in *MemberCluster) DeepCopy() *MemberCluster

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemberCluster.

func (*MemberCluster) DeepCopyInto

func (in *MemberCluster) DeepCopyInto(out *MemberCluster)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MemberClusterAnnounce

type MemberClusterAnnounce struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Cluster ID of the member cluster.
	ClusterID string `json:"clusterID,omitempty"`
	// ClusterSet this member belongs to.
	ClusterSetID string `json:"clusterSetID,omitempty"`
	// Leader cluster this member has selected.
	LeaderClusterID string `json:"leaderClusterID,omitempty"`
}

+kubebuilder:printcolumn:name="Cluster ID",type=string,JSONPath=`.clusterID`,description="Cluster ID of the member cluster" +kubebuilder:printcolumn:name="ClusterSet ID",type=string,JSONPath=`.clusterSetID`,description="ClusterSet ID" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp` MemberClusterAnnounce is the Schema for the memberclusterannounces API

func (*MemberClusterAnnounce) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemberClusterAnnounce.

func (*MemberClusterAnnounce) DeepCopyInto

func (in *MemberClusterAnnounce) DeepCopyInto(out *MemberClusterAnnounce)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MemberClusterAnnounce) DeepCopyObject

func (in *MemberClusterAnnounce) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MemberClusterAnnounceList

type MemberClusterAnnounceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MemberClusterAnnounce `json:"items"`
}

MemberClusterAnnounceList contains a list of MemberClusterAnnounce

func (*MemberClusterAnnounceList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemberClusterAnnounceList.

func (*MemberClusterAnnounceList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MemberClusterAnnounceList) DeepCopyObject

func (in *MemberClusterAnnounceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MultiClusterConfig

type MultiClusterConfig struct {
	metav1.TypeMeta `json:",inline"`
	// ControllerManagerConfigurationSpec defines the contfigurations for controllers.
	config.ControllerManagerConfigurationSpec `json:",inline"`
	// ServiceCIDR allows user to set the ClusterIP range of the cluster manually.
	ServiceCIDR string `json:"serviceCIDR,omitempty"`
	// PodCIDRs is the Pod IP address CIDRs.
	PodCIDRs []string `json:"podCIDRs,omitempty"`
	// The precedence about which IP address (internal or external IP) of Node is preferred to
	// be used as the cross-cluster tunnel endpoint. if not specified, internal IP will be chosen.
	GatewayIPPrecedence Precedence `json:"gatewayIPPrecedence,omitempty"`
	// The type of IP address (ClusterIP or PodIP) to be used as the Multi-cluster
	// Services' Endpoints. Defaults to ClusterIP. All member clusters should use the same type
	// in a ClusterSet. Existing ServiceExports should be re-exported after changing
	// EndpointIPType. ClusterIP type requires that Multi-cluster Gateway is configured.
	// PodIP type requires Multi-cluster Gateway too when there is no direct Pod-to-Pod
	// connectivity across member clusters.
	EndpointIPType string `json:"endpointIPType,omitempty"`
	// Enable StretchedNetworkPolicy which will export and import labelIdentities in the
	// ClusterSet and allow Antrea-native policies to select peers from other clusters
	// in a ClusterSet.
	EnableStretchedNetworkPolicy bool `json:"enableStretchedNetworkPolicy,omitempty"`
}

+kubebuilder:printcolumn:name="Gateway IP Precedence",type=string,JSONPath=`.gatewayIPPrecedence`,description="Precedence of Gateway IP types" +kubebuilder:printcolumn:name="Service CIDR",type=string,JSONPath=`.serviceCIDR`,description="Manually specified Service CIDR"

func (*MultiClusterConfig) DeepCopy

func (in *MultiClusterConfig) DeepCopy() *MultiClusterConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterConfig.

func (*MultiClusterConfig) DeepCopyInto

func (in *MultiClusterConfig) DeepCopyInto(out *MultiClusterConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MultiClusterConfig) DeepCopyObject

func (in *MultiClusterConfig) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type Precedence added in v1.7.0

type Precedence string

Precedence defines the precedence of Node IP type.

type RawResourceExport

type RawResourceExport struct {
	Data []byte `json:"data,omitempty"`
}

RawResourceExport exports opaque resources.

func (*RawResourceExport) DeepCopy

func (in *RawResourceExport) DeepCopy() *RawResourceExport

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RawResourceExport.

func (*RawResourceExport) DeepCopyInto

func (in *RawResourceExport) DeepCopyInto(out *RawResourceExport)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RawResourceImport

type RawResourceImport struct {
	Data []byte `json:"data,omitempty"`
}

RawResourceImport imports opaque resources.

func (*RawResourceImport) DeepCopy

func (in *RawResourceImport) DeepCopy() *RawResourceImport

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RawResourceImport.

func (*RawResourceImport) DeepCopyInto

func (in *RawResourceImport) DeepCopyInto(out *RawResourceImport)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceCondition added in v1.7.0

type ResourceCondition struct {
	// Type is the type of the condition.
	Type ResourceConditionType `json:"type,omitempty"`
	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status,omitempty"`

	// +optional
	// Last time the condition transited from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// +optional
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
	// +optional
	// Unique, one-word, CamelCase reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
}

ResourceCondition indicates the readiness condition of a Resource.

func (*ResourceCondition) DeepCopy added in v1.7.0

func (in *ResourceCondition) DeepCopy() *ResourceCondition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceCondition.

func (*ResourceCondition) DeepCopyInto added in v1.7.0

func (in *ResourceCondition) DeepCopyInto(out *ResourceCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceConditionType added in v1.7.0

type ResourceConditionType string
const (
	ResourceReady ResourceConditionType = "Ready"
)

type ResourceExport

type ResourceExport struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ResourceExportSpec   `json:"spec,omitempty"`
	Status ResourceExportStatus `json:"status,omitempty"`
}

+kubebuilder:printcolumn:name="Cluster ID",type=string,JSONPath=`.spec.clusterID`,description="Cluster ID of the exporting cluster" +kubebuilder:printcolumn:name="Kind",type=string,JSONPath=`.spec.kind`,description="Kind of the exported resource" +kubebuilder:printcolumn:name="Namespace",type=string,JSONPath=`.spec.namespace`,description="Namespace of the exported resource" +kubebuilder:printcolumn:name="Name",type=string,JSONPath=`.spec.name`,description="Name of the exported resource" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp` ResourceExport is the Schema for the resourceexports API.

func (*ResourceExport) DeepCopy

func (in *ResourceExport) DeepCopy() *ResourceExport

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceExport.

func (*ResourceExport) DeepCopyInto

func (in *ResourceExport) DeepCopyInto(out *ResourceExport)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceExport) DeepCopyObject

func (in *ResourceExport) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ResourceExport) Default

func (r *ResourceExport) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*ResourceExport) SetupWebhookWithManager

func (r *ResourceExport) SetupWebhookWithManager(mgr ctrl.Manager) error

type ResourceExportCondition

type ResourceExportCondition struct {
	Type ResourceExportConditionType `json:"type,omitempty"`
	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status,omitempty"`
	// +optional
	// Last time the condition transited from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// +optional
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
	// +optional
	// Unique, one-word, CamelCase reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
}

ResourceExportCondition indicates the readiness condition of the ResourceExport.

func (*ResourceExportCondition) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceExportCondition.

func (*ResourceExportCondition) DeepCopyInto

func (in *ResourceExportCondition) DeepCopyInto(out *ResourceExportCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceExportConditionType

type ResourceExportConditionType string
const (
	// ResourceExportFailure indicates ResourceExport has been converged into
	// ResourceImport successfully.
	ResourceExportSucceeded ResourceExportConditionType = "Succeeded"
	// ResourceExportFailure indicates ResourceExport has some issues to be converged
	// into ResourceImport.
	ResourceExportFailure ResourceExportConditionType = "Failure"
)

type ResourceExportList

type ResourceExportList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ResourceExport `json:"items"`
}

ResourceExportList contains a list of ResourceExport.

func (*ResourceExportList) DeepCopy

func (in *ResourceExportList) DeepCopy() *ResourceExportList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceExportList.

func (*ResourceExportList) DeepCopyInto

func (in *ResourceExportList) DeepCopyInto(out *ResourceExportList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceExportList) DeepCopyObject

func (in *ResourceExportList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ResourceExportSpec

type ResourceExportSpec struct {
	// ClusterID specifies the member cluster this resource exported from.
	ClusterID string `json:"clusterID,omitempty"`
	// Name of exported resource.
	Name string `json:"name,omitempty"`
	// Namespace of exported resource.
	Namespace string `json:"namespace,omitempty"`
	// Kind of exported resource.
	Kind string `json:"kind,omitempty"`

	// If exported resource is Service.
	Service *ServiceExport `json:"service,omitempty"`
	// If exported resource is Endpoints.
	Endpoints *EndpointsExport `json:"endpoints,omitempty"`
	// If exported resource is ClusterInfo.
	ClusterInfo *ClusterInfo `json:"clusterInfo,omitempty"`
	// If exported resource is ExternalEntity.
	ExternalEntity *ExternalEntityExport `json:"externalEntity,omitempty"`
	// If exported resource is AntreaClusterNetworkPolicy.
	ClusterNetworkPolicy *v1alpha1.ClusterNetworkPolicySpec `json:"clusterNetworkPolicy,omitempty"`
	// If exported resource is LabelIdentity of a cluster.
	LabelIdentity *LabelIdentityExport `json:"labelIdentity,omitempty"`
	// If exported resource kind is unknown.
	Raw *RawResourceExport `json:"raw,omitempty"`
}

ResourceExportSpec defines the desired state of ResourceExport.

func (*ResourceExportSpec) DeepCopy

func (in *ResourceExportSpec) DeepCopy() *ResourceExportSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceExportSpec.

func (*ResourceExportSpec) DeepCopyInto

func (in *ResourceExportSpec) DeepCopyInto(out *ResourceExportSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceExportStatus

type ResourceExportStatus struct {
	Conditions []ResourceExportCondition `json:"conditions,omitempty"`
}

ResourceExportStatus defines the observed state of ResourceExport.

func (*ResourceExportStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceExportStatus.

func (*ResourceExportStatus) DeepCopyInto

func (in *ResourceExportStatus) DeepCopyInto(out *ResourceExportStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceImport

type ResourceImport struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ResourceImportSpec   `json:"spec,omitempty"`
	Status ResourceImportStatus `json:"status,omitempty"`
}

+kubebuilder:printcolumn:name="Kind",type=string,JSONPath=`.spec.kind`,description="Kind of the imported resource" +kubebuilder:printcolumn:name="Namespace",type=string,JSONPath=`.spec.namespace`,description="Namespace of the imported resource" +kubebuilder:printcolumn:name="Name",type=string,JSONPath=`.spec.name`,description="Name of the imported resource" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" ResourceImport is the Schema for the resourceimports API.

func (*ResourceImport) DeepCopy

func (in *ResourceImport) DeepCopy() *ResourceImport

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceImport.

func (*ResourceImport) DeepCopyInto

func (in *ResourceImport) DeepCopyInto(out *ResourceImport)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceImport) DeepCopyObject

func (in *ResourceImport) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ResourceImportClusterStatus

type ResourceImportClusterStatus struct {
	// ClusterID is the unique identifier of this cluster.
	ClusterID  string                    `json:"clusterID,omitempty"`
	Conditions []ResourceImportCondition `json:"conditions,omitempty"`
}

ResourceImportClusterStatus indicates the readiness status of the ResourceImport in clusters.

func (*ResourceImportClusterStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceImportClusterStatus.

func (*ResourceImportClusterStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceImportCondition

type ResourceImportCondition struct {
	Type ResourceImportConditionType `json:"type,omitempty"`
	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status,omitempty"`
	// +optional
	// Last time the condition transited from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// +optional
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
	// +optional
	// Unique, one-word, CamelCase reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
}

ResourceImportCondition indicates the condition of the ResourceImport in a cluster.

func (*ResourceImportCondition) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceImportCondition.

func (*ResourceImportCondition) DeepCopyInto

func (in *ResourceImportCondition) DeepCopyInto(out *ResourceImportCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceImportConditionType

type ResourceImportConditionType string
const (
	ResourceImportSucceeded ResourceImportConditionType = "Succeeded"
)

type ResourceImportList

type ResourceImportList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ResourceImport `json:"items"`
}

ResourceImportList contains a list of ResourceImport.

func (*ResourceImportList) DeepCopy

func (in *ResourceImportList) DeepCopy() *ResourceImportList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceImportList.

func (*ResourceImportList) DeepCopyInto

func (in *ResourceImportList) DeepCopyInto(out *ResourceImportList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceImportList) DeepCopyObject

func (in *ResourceImportList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ResourceImportSpec

type ResourceImportSpec struct {
	// ClusterIDs specifies the member clusters this resource to import to.
	// When not specified, import to all member clusters.
	ClusterIDs []string `json:"clusterID,omitempty"`
	// Name of imported resource.
	Name string `json:"name,omitempty"`
	// Namespace of imported resource.
	Namespace string `json:"namespace,omitempty"`
	// Kind of imported resource.
	Kind string `json:"kind,omitempty"`

	// If imported resource is ServiceImport.
	ServiceImport *mcs.ServiceImport `json:"serviceImport,omitempty"`
	// If imported resource is EndPoints.
	Endpoints *EndpointsImport `json:"endpoints,omitempty"`
	// If imported resource is ClusterInfo.
	ClusterInfo *ClusterInfo `json:"clusterinfo,omitempty"`
	// If imported resource is ExternalEntity.
	ExternalEntity *ExternalEntityImport `json:"externalentity,omitempty"`
	// If imported resource is AntreaClusterNetworkPolicy.
	ClusterNetworkPolicy *v1alpha1.ClusterNetworkPolicySpec `json:"clusternetworkpolicy,omitempty"`
	// If imported resource kind is LabelIdentity.
	LabelIdentity *LabelIdentitySpec `json:"labelIdentity,omitempty"`
	// If imported resource kind is unknown.
	Raw *RawResourceImport `json:"raw,omitempty"`
}

ResourceImportSpec defines the desired state of ResourceImport.

func (*ResourceImportSpec) DeepCopy

func (in *ResourceImportSpec) DeepCopy() *ResourceImportSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceImportSpec.

func (*ResourceImportSpec) DeepCopyInto

func (in *ResourceImportSpec) DeepCopyInto(out *ResourceImportSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceImportStatus

type ResourceImportStatus struct {
	ClusterStatuses []ResourceImportClusterStatus `json:"clusterStatuses,omitempty"`
}

ResourceImportStatus defines the observed state of ResourceImport.

func (*ResourceImportStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceImportStatus.

func (*ResourceImportStatus) DeepCopyInto

func (in *ResourceImportStatus) DeepCopyInto(out *ResourceImportStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServiceExport

type ServiceExport struct {
	ServiceSpec v1.ServiceSpec `json:"serviceSpec,omitempty"`
}

ServiceExport exports Service.

func (*ServiceExport) DeepCopy

func (in *ServiceExport) DeepCopy() *ServiceExport

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceExport.

func (*ServiceExport) DeepCopyInto

func (in *ServiceExport) DeepCopyInto(out *ServiceExport)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL