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
- Variables
- func Resource(resource string) schema.GroupResource
- type ClusterClaim
- func (in *ClusterClaim) DeepCopy() *ClusterClaim
- func (in *ClusterClaim) DeepCopyInto(out *ClusterClaim)
- func (in *ClusterClaim) DeepCopyObject() runtime.Object
- func (r *ClusterClaim) Default()
- func (r *ClusterClaim) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *ClusterClaim) ValidateCreate() error
- func (r *ClusterClaim) ValidateDelete() error
- func (r *ClusterClaim) ValidateUpdate(old runtime.Object) error
- type ClusterClaimList
- type ClusterCondition
- type ClusterConditionType
- type ClusterInfo
- type ClusterInfoImport
- type ClusterInfoImportList
- type ClusterInfoImportStatus
- type ClusterSet
- func (in *ClusterSet) DeepCopy() *ClusterSet
- func (in *ClusterSet) DeepCopyInto(out *ClusterSet)
- func (in *ClusterSet) DeepCopyObject() runtime.Object
- func (r *ClusterSet) Default()
- func (r *ClusterSet) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *ClusterSet) ValidateCreate() error
- func (r *ClusterSet) ValidateDelete() error
- func (r *ClusterSet) ValidateUpdate(old runtime.Object) error
- type ClusterSetCondition
- type ClusterSetConditionType
- type ClusterSetList
- type ClusterSetSpec
- type ClusterSetStatus
- type ClusterStatus
- type EndpointsExport
- type EndpointsImport
- type ExternalEntityExport
- type ExternalEntityImport
- type Gateway
- type GatewayInfo
- type GatewayList
- type MemberCluster
- type MemberClusterAnnounce
- type MemberClusterAnnounceList
- type MultiClusterConfig
- type Precedence
- type RawResourceExport
- type RawResourceImport
- type ResourceCondition
- type ResourceConditionType
- type ResourceExport
- func (in *ResourceExport) DeepCopy() *ResourceExport
- func (in *ResourceExport) DeepCopyInto(out *ResourceExport)
- func (in *ResourceExport) DeepCopyObject() runtime.Object
- func (r *ResourceExport) Default()
- func (r *ResourceExport) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *ResourceExport) ValidateCreate() error
- func (r *ResourceExport) ValidateDelete() error
- func (r *ResourceExport) ValidateUpdate(old runtime.Object) error
- type ResourceExportCondition
- type ResourceExportConditionType
- type ResourceExportList
- type ResourceExportSpec
- type ResourceExportStatus
- type ResourceImport
- func (in *ResourceImport) DeepCopy() *ResourceImport
- func (in *ResourceImport) DeepCopyInto(out *ResourceImport)
- func (in *ResourceImport) DeepCopyObject() runtime.Object
- func (r *ResourceImport) Default()
- func (r *ResourceImport) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *ResourceImport) ValidateCreate() error
- func (r *ResourceImport) ValidateDelete() error
- func (r *ResourceImport) ValidateUpdate(old runtime.Object) error
- type ResourceImportClusterStatus
- type ResourceImportCondition
- type ResourceImportConditionType
- type ResourceImportList
- type ResourceImportSpec
- type ResourceImportStatus
- type ServiceExport
Constants ¶
const ( // Identify this cluster. WellKnownClusterClaimID = "id.k8s.io" // Identify a clusterSet that this cluster is member of. WellKnownClusterClaimClusterSet = "clusterset.k8s.io" )
const ( PrecedencePrivate = "private" PrecedencePublic = "public" )
Variables ¶
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 )
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 ClusterClaim ¶
type ClusterClaim struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Name of the ClusterClaim. Name string `json:"name,omitempty"` // TODO: Remove the name as it is already part of ObjectMeta and its confusing to have two names // Value of the ClusterClaim. Value string `json:"value,omitempty"` }
ClusterClaim is the Schema for the clusterclaims API
func (*ClusterClaim) DeepCopy ¶
func (in *ClusterClaim) DeepCopy() *ClusterClaim
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterClaim.
func (*ClusterClaim) DeepCopyInto ¶
func (in *ClusterClaim) DeepCopyInto(out *ClusterClaim)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterClaim) DeepCopyObject ¶
func (in *ClusterClaim) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterClaim) Default ¶
func (r *ClusterClaim) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*ClusterClaim) SetupWebhookWithManager ¶
func (r *ClusterClaim) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterClaim) ValidateCreate ¶
func (r *ClusterClaim) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ClusterClaim) ValidateDelete ¶
func (r *ClusterClaim) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ClusterClaim) ValidateUpdate ¶
func (r *ClusterClaim) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type ClusterClaimList ¶
type ClusterClaimList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterClaim `json:"items"` }
ClusterClaimList contains a list of ClusterClaim
func (*ClusterClaimList) DeepCopy ¶
func (in *ClusterClaimList) DeepCopy() *ClusterClaimList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterClaimList.
func (*ClusterClaimList) DeepCopyInto ¶
func (in *ClusterClaimList) DeepCopyInto(out *ClusterClaimList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterClaimList) DeepCopyObject ¶
func (in *ClusterClaimList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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" // ClusterIsElectedLeader indicates whether the leader cluster is the elected leader. // Used in Member clusters only. ClusterIsElectedLeader ClusterConditionType = "IsElectedLeader" // ClusterImportsResources indicates whether the member cluster has elected the // local cluster as the elected leader and imports resources from it. // Used in Leader clusters only. ClusterImportsResources ClusterConditionType = "ImportsResources" )
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"` }
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"` }
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
func (in *ClusterInfoImportList) DeepCopy() *ClusterInfoImportList
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
func (in *ClusterInfoImportStatus) DeepCopy() *ClusterInfoImportStatus
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"` }
ClusterSet is the Schema for the clustersets API.
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.
func (*ClusterSet) Default ¶
func (r *ClusterSet) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*ClusterSet) SetupWebhookWithManager ¶
func (r *ClusterSet) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterSet) ValidateCreate ¶
func (r *ClusterSet) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ClusterSet) ValidateDelete ¶
func (r *ClusterSet) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ClusterSet) ValidateUpdate ¶
func (r *ClusterSet) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
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. Leaders []MemberCluster `json:"leaders,omitempty"` // Namespace to connect to in leader clusters. // 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 set. 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 ¶
func (in *ExternalEntityExport) DeepCopy() *ExternalEntityExport
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 ¶
func (in *ExternalEntityImport) DeepCopy() *ExternalEntityImport
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"` // Tunnel IP of the Gateway. It might be assigned by user manually // through a Node annotation. GatewayIP string `json:"gatewayIP,omitempty"` // Internal tunnel IP of the Gateway. InternalIP string `json:"internalIP,omitempty"` }
Gateway includes information of a Multi-cluster Gateway.
func (*Gateway) DeepCopy ¶ added in v1.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Gateway.
func (*Gateway) DeepCopyInto ¶ added in v1.7.0
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
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 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"` // ClusterID 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"` }
MemberClusterAnnounce is the Schema for the memberclusterannounces API
func (*MemberClusterAnnounce) DeepCopy ¶
func (in *MemberClusterAnnounce) DeepCopy() *MemberClusterAnnounce
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 ¶
func (in *MemberClusterAnnounceList) DeepCopy() *MemberClusterAnnounceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemberClusterAnnounceList.
func (*MemberClusterAnnounceList) DeepCopyInto ¶
func (in *MemberClusterAnnounceList) DeepCopyInto(out *MemberClusterAnnounceList)
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 returns 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"` // The precedence about which IP (private or public one) of Node is preferred to // be used as tunnel endpoint. if not specified, private IP will be chosen. GatewayIPPrecedence Precedence `json:"gatewayIPPrecedence,omitempty"` }
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"` }
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
func (*ResourceExport) ValidateCreate ¶
func (r *ResourceExport) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ResourceExport) ValidateDelete ¶
func (r *ResourceExport) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ResourceExport) ValidateUpdate ¶
func (r *ResourceExport) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
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 ¶
func (in *ResourceExportCondition) DeepCopy() *ResourceExportCondition
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 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 ¶
func (in *ResourceExportStatus) DeepCopy() *ResourceExportStatus
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"` }
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.
func (*ResourceImport) Default ¶
func (r *ResourceImport) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*ResourceImport) SetupWebhookWithManager ¶
func (r *ResourceImport) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ResourceImport) ValidateCreate ¶
func (r *ResourceImport) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ResourceImport) ValidateDelete ¶
func (r *ResourceImport) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ResourceImport) ValidateUpdate ¶
func (r *ResourceImport) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
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 ¶
func (in *ResourceImportClusterStatus) DeepCopy() *ResourceImportClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceImportClusterStatus.
func (*ResourceImportClusterStatus) DeepCopyInto ¶
func (in *ResourceImportClusterStatus) DeepCopyInto(out *ResourceImportClusterStatus)
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 ¶
func (in *ResourceImportCondition) DeepCopy() *ResourceImportCondition
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 is ANP. // TODO: // ANP uses float64 as priority. Type float64 is discouraged by k8s, and is not supported by controller-gen tools. // NetworkPolicy *v1alpha1.NetworkPolicySpec `json:"networkpolicy,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 ¶
func (in *ResourceImportStatus) DeepCopy() *ResourceImportStatus
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.
Source Files ¶
- clusterclaim_types.go
- clusterclaim_webhook.go
- clusterinfoimport_types.go
- clusterset_types.go
- clusterset_webhook.go
- doc.go
- gateway_types.go
- groupversion_info.go
- memberclusterannounce_types.go
- multiclusterconfig_types.go
- register.go
- resourceexport_types.go
- resourceexport_webhook.go
- resourceimport_types.go
- resourceimport_webhook.go
- status.go
- zz_generated.deepcopy.go