v1alpha1

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: Apache-2.0 Imports: 11 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 (
	// Identify this cluster.
	WellKnownClusterClaimID = "id.k8s.io"
	// Identify a clusterSet that this cluster is member of.
	WellKnownClusterClaimClusterSet = "clusterSet.k8s.io"
)

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 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 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

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 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

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 returns the contfigurations for controllers
	config.ControllerManagerConfigurationSpec `json:",inline"`
}

MultiClusterConfig is the Schema for the multiclusterconfigs API

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 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 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

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 ResourceExportFilter

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

	Spec   ResourceExportFilterSpec   `json:"spec,omitempty"`
	Status ResourceExportFilterStatus `json:"status,omitempty"`
}

ResourceExportFilter is the Schema for the ResourceExportFilters API

func (*ResourceExportFilter) DeepCopy

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

func (*ResourceExportFilter) DeepCopyInto

func (in *ResourceExportFilter) DeepCopyInto(out *ResourceExportFilter)

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

func (*ResourceExportFilter) DeepCopyObject

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

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

type ResourceExportFilterList

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

ResourceExportFilterList contains a list of ResourceExportFilter

func (*ResourceExportFilterList) DeepCopy

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

func (*ResourceExportFilterList) DeepCopyInto

func (in *ResourceExportFilterList) DeepCopyInto(out *ResourceExportFilterList)

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

func (*ResourceExportFilterList) DeepCopyObject

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

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

type ResourceExportFilterSpec

type ResourceExportFilterSpec struct {
}

ResourceExportFilterSpec defines the desired state of ResourceExportFilter

func (*ResourceExportFilterSpec) DeepCopy

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

func (*ResourceExportFilterSpec) DeepCopyInto

func (in *ResourceExportFilterSpec) DeepCopyInto(out *ResourceExportFilterSpec)

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

type ResourceExportFilterStatus

type ResourceExportFilterStatus struct {
}

ResourceExportFilterStatus defines the observed state of ResourceExportFilter

func (*ResourceExportFilterStatus) DeepCopy

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

func (*ResourceExportFilterStatus) DeepCopyInto

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

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 ExternalEntity.
	ExternalEntity *ExternalEntityExport `json:"externalentity,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"`
}

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

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 ResourceImportFilter

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

	Spec   ResourceImportFilterSpec   `json:"spec,omitempty"`
	Status ResourceImportFilterStatus `json:"status,omitempty"`
}

ResourceImportFilter is the Schema for the ResourceImportFilters API

func (*ResourceImportFilter) DeepCopy

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

func (*ResourceImportFilter) DeepCopyInto

func (in *ResourceImportFilter) DeepCopyInto(out *ResourceImportFilter)

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

func (*ResourceImportFilter) DeepCopyObject

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

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

type ResourceImportFilterList

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

ResourceImportFilterList contains a list of ResourceImportFilter

func (*ResourceImportFilterList) DeepCopy

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

func (*ResourceImportFilterList) DeepCopyInto

func (in *ResourceImportFilterList) DeepCopyInto(out *ResourceImportFilterList)

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

func (*ResourceImportFilterList) DeepCopyObject

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

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

type ResourceImportFilterSpec

type ResourceImportFilterSpec struct {
}

ResourceImportFilterSpec defines the desired state of ResourceImportFilter

func (*ResourceImportFilterSpec) DeepCopy

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

func (*ResourceImportFilterSpec) DeepCopyInto

func (in *ResourceImportFilterSpec) DeepCopyInto(out *ResourceImportFilterSpec)

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

type ResourceImportFilterStatus

type ResourceImportFilterStatus struct {
}

ResourceImportFilterStatus defines the observed state of ResourceImportFilter

func (*ResourceImportFilterStatus) DeepCopy

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

func (*ResourceImportFilterStatus) DeepCopyInto

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

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 ExternalEntity.
	ExternalEntity *ExternalEntityImport `json:"externalentity,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

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