v1

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the multicluster v1 API group +kubebuilder:object:generate=true +groupName=multicluster.alibaba.com

Index

Constants

View Source
const (
	ClusterReady    = ClusterState("Ready")
	ClusterNotReady = ClusterState("NotReady")
	ClusterOffline  = ClusterState("Offline")
	ClusterUnknown  = ClusterState("Unknown")
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "multicluster.alibaba.com", Version: "v1"}

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

	// SchemeGroupVersion is used for code-generator
	SchemeGroupVersion = GroupVersion
)

Functions

func GetRemoteSubnetType

func GetRemoteSubnetType(remoteSubnetObj *RemoteSubnet) networkingv1.NetworkType

func Resource added in v0.8.0

func Resource(resource string) schema.GroupResource

Resource is required by pkg/client/listers/..., for code-generator

Types

type ClusterState

type ClusterState string

type RemoteCluster

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

	Spec   RemoteClusterSpec   `json:"spec,omitempty"`
	Status RemoteClusterStatus `json:"status,omitempty"`
}

RemoteCluster is the Schema for the remoteclusters API

func (*RemoteCluster) DeepCopy

func (in *RemoteCluster) DeepCopy() *RemoteCluster

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

func (*RemoteCluster) DeepCopyInto

func (in *RemoteCluster) DeepCopyInto(out *RemoteCluster)

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

func (*RemoteCluster) DeepCopyObject

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

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

type RemoteClusterList

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

RemoteClusterList contains a list of RemoteCluster

func (*RemoteClusterList) DeepCopy

func (in *RemoteClusterList) DeepCopy() *RemoteClusterList

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

func (*RemoteClusterList) DeepCopyInto

func (in *RemoteClusterList) DeepCopyInto(out *RemoteClusterList)

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

func (*RemoteClusterList) DeepCopyObject

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

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

type RemoteClusterSpec

type RemoteClusterSpec struct {
	// APIEndpoint is the API endpoint of the member cluster. This can be a hostname,
	// hostname:port, IP or IP:port.
	// +kubuilder:validation:Required
	APIEndpoint string `json:"apiEndpoint"`
	// CAData holds PEM-encoded bytes (typically read from a root certificates bundle).
	// CAData takes precedence over CAFile
	// +kubuilder:validation:Optional
	CAData []byte `json:"caData,omitempty"`
	// CertData holds PEM-encoded bytes (typically read from a client certificate file).
	// CertData takes precedence over CertFile
	// +kubuilder:validation:Optional
	CertData []byte `json:"certData,omitempty"`
	// KeyData holds PEM-encoded bytes (typically read from a client certificate key file).
	// KeyData takes precedence over KeyFile
	// +kubuilder:validation:Optional
	KeyData []byte `json:"keyData,omitempty"`
	// Timeout is the maximum length of time to wait before giving up on a server request.
	// A value of zero means no timeout.
	Timeout int32 `json:"timeout,omitempty"`
}

RemoteClusterSpec defines the desired state of RemoteCluster

func (*RemoteClusterSpec) DeepCopy

func (in *RemoteClusterSpec) DeepCopy() *RemoteClusterSpec

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

func (*RemoteClusterSpec) DeepCopyInto

func (in *RemoteClusterSpec) DeepCopyInto(out *RemoteClusterSpec)

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

type RemoteClusterStatus

type RemoteClusterStatus struct {
	// UUID is the unique in time and space value for this object.
	// +kubebuilder:validation:Optional
	UUID types.UID `json:"uuid,omitempty"`
	// State is the current state of cluster.
	// +kubebuilder:validation:Optional
	State ClusterState `json:"state,omitempty"`
	// Conditions represents the observations of a cluster's current state.
	// +kubebuilder:validation:Optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

RemoteClusterStatus defines the observed state of RemoteCluster

func (*RemoteClusterStatus) DeepCopy

func (in *RemoteClusterStatus) DeepCopy() *RemoteClusterStatus

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

func (*RemoteClusterStatus) DeepCopyInto

func (in *RemoteClusterStatus) DeepCopyInto(out *RemoteClusterStatus)

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

type RemoteEndpointSlice added in v0.7.0

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

	Spec   RemoteEndpointSliceSpec   `json:"spec,omitempty"`
	Status RemoteEndpointSliceStatus `json:"status,omitempty"`
}

RemoteEndpointSlice is the Schema for the remoteendpointslice API

func (*RemoteEndpointSlice) DeepCopy added in v0.7.0

func (in *RemoteEndpointSlice) DeepCopy() *RemoteEndpointSlice

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

func (*RemoteEndpointSlice) DeepCopyInto added in v0.7.0

func (in *RemoteEndpointSlice) DeepCopyInto(out *RemoteEndpointSlice)

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

func (*RemoteEndpointSlice) DeepCopyObject added in v0.7.0

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

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

type RemoteEndpointSliceList added in v0.7.0

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

RemoteEndpointSliceList contains a list of RemoteEndpointSlice

func (*RemoteEndpointSliceList) DeepCopy added in v0.7.0

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

func (*RemoteEndpointSliceList) DeepCopyInto added in v0.7.0

func (in *RemoteEndpointSliceList) DeepCopyInto(out *RemoteEndpointSliceList)

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

func (*RemoteEndpointSliceList) DeepCopyObject added in v0.7.0

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

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

type RemoteEndpointSliceSpec added in v0.7.0

type RemoteEndpointSliceSpec struct {
	// +kubebuilder:validation:Required
	RemoteService RemoteServiceInfo `json:"remoteService"`

	// addressType specifies the type of address carried by this EndpointSlice.
	// All addresses in this slice must be the same type. This field is
	// immutable after creation. The following address types are currently
	// supported:
	// * IPv4: Represents an IPv4 Address.
	// * IPv6: Represents an IPv6 Address.
	// * FQDN: Represents a Fully Qualified Domain Name.
	// +kubebuilder:validation:Required
	AddressType discoveryv1beta1.AddressType `json:"addressType" protobuf:"bytes,4,rep,name=addressType"`
	// endpoints is a list of unique endpoints in this slice. Each slice may
	// include a maximum of 1000 endpoints.
	// +listType=atomic
	// +kubebuilder:validation:Optional
	Endpoints []discoveryv1beta1.Endpoint `json:"endpoints" protobuf:"bytes,2,rep,name=endpoints"`
	// ports specifies the list of network ports exposed by each endpoint in
	// this slice. Each port must have a unique name. When ports is empty, it
	// indicates that there are no defined ports. When a port is defined with a
	// nil port value, it indicates "all ports". Each slice may include a
	// maximum of 100 ports.
	// +optional
	// +listType=atomic
	Ports []discoveryv1beta1.EndpointPort `json:"ports" protobuf:"bytes,3,rep,name=ports"`
}

RemoteEndpointSliceSpec defines the desired state of RemoteEndpointSlice, it's a copy of discovery.EndpointSlice

func (*RemoteEndpointSliceSpec) DeepCopy added in v0.7.0

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

func (*RemoteEndpointSliceSpec) DeepCopyInto added in v0.7.0

func (in *RemoteEndpointSliceSpec) DeepCopyInto(out *RemoteEndpointSliceSpec)

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

type RemoteEndpointSliceStatus added in v0.7.0

type RemoteEndpointSliceStatus struct {
	// LastModifyTime shows the last timestamp when the remote subnet was updated.
	// +kubebuilder:validation:Optional
	LastModifyTime metav1.Time `json:"lastModifyTime,omitempty"`
}

RemoteEndpointSliceStatus defines the observed state of RemoteEndpointSlice

func (*RemoteEndpointSliceStatus) DeepCopy added in v0.7.0

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

func (*RemoteEndpointSliceStatus) DeepCopyInto added in v0.7.0

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

type RemoteServiceInfo added in v0.7.0

type RemoteServiceInfo struct {
	// +kubebuilder:validation:Required
	Cluster string `json:"cluster"`

	// +kubebuilder:validation:Required
	Name string `json:"name"`

	// +kubebuilder:validation:Required
	Namespace string `json:"namespace"`
}

func (*RemoteServiceInfo) DeepCopy added in v0.7.0

func (in *RemoteServiceInfo) DeepCopy() *RemoteServiceInfo

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

func (*RemoteServiceInfo) DeepCopyInto added in v0.7.0

func (in *RemoteServiceInfo) DeepCopyInto(out *RemoteServiceInfo)

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

type RemoteSubnet

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

	Spec   RemoteSubnetSpec   `json:"spec,omitempty"`
	Status RemoteSubnetStatus `json:"status,omitempty"`
}

RemoteSubnet is the Schema for the remotesubnets API

func (*RemoteSubnet) DeepCopy

func (in *RemoteSubnet) DeepCopy() *RemoteSubnet

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

func (*RemoteSubnet) DeepCopyInto

func (in *RemoteSubnet) DeepCopyInto(out *RemoteSubnet)

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

func (*RemoteSubnet) DeepCopyObject

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

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

type RemoteSubnetList

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

RemoteSubnetList contains a list of RemoteSubnet

func (*RemoteSubnetList) DeepCopy

func (in *RemoteSubnetList) DeepCopy() *RemoteSubnetList

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

func (*RemoteSubnetList) DeepCopyInto

func (in *RemoteSubnetList) DeepCopyInto(out *RemoteSubnetList)

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

func (*RemoteSubnetList) DeepCopyObject

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

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

type RemoteSubnetSpec

type RemoteSubnetSpec struct {
	// Range is the IP collection of this remote subnet.
	// +kubebuilder:validation:Required
	Range networkingv1.AddressRange `json:"range"`
	// Type is the network type of this remote subnet.
	// Now there are two known types, Overlay and Underlay.
	// +kubebuilder:validation:Required
	Type networkingv1.NetworkType `json:"networkType,omitempty"`
	// ClusterName is the name of parent cluster who owns this remote subnet.
	// +kubebuilder:validation:Required
	ClusterName string `json:"clusterName,omitempty"`
}

RemoteSubnetSpec defines the desired state of RemoteSubnet

func (*RemoteSubnetSpec) DeepCopy

func (in *RemoteSubnetSpec) DeepCopy() *RemoteSubnetSpec

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

func (*RemoteSubnetSpec) DeepCopyInto

func (in *RemoteSubnetSpec) DeepCopyInto(out *RemoteSubnetSpec)

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

type RemoteSubnetStatus

type RemoteSubnetStatus struct {
	// LastModifyTime shows the last timestamp when the remote subnet was updated.
	// +kubebuilder:validation:Optional
	LastModifyTime metav1.Time `json:"lastModifyTime,omitempty"`
}

RemoteSubnetStatus defines the observed state of RemoteSubnet

func (*RemoteSubnetStatus) DeepCopy

func (in *RemoteSubnetStatus) DeepCopy() *RemoteSubnetStatus

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

func (*RemoteSubnetStatus) DeepCopyInto

func (in *RemoteSubnetStatus) DeepCopyInto(out *RemoteSubnetStatus)

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

type RemoteVtep

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

	Spec   RemoteVtepSpec   `json:"spec,omitempty"`
	Status RemoteVtepStatus `json:"status,omitempty"`
}

RemoteVtep is the Schema for the remotevteps API

func (*RemoteVtep) DeepCopy

func (in *RemoteVtep) DeepCopy() *RemoteVtep

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

func (*RemoteVtep) DeepCopyInto

func (in *RemoteVtep) DeepCopyInto(out *RemoteVtep)

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

func (*RemoteVtep) DeepCopyObject

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

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

type RemoteVtepList

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

RemoteVtepList contains a list of RemoteVtep

func (*RemoteVtepList) DeepCopy

func (in *RemoteVtepList) DeepCopy() *RemoteVtepList

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

func (*RemoteVtepList) DeepCopyInto

func (in *RemoteVtepList) DeepCopyInto(out *RemoteVtepList)

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

func (*RemoteVtepList) DeepCopyObject

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

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

type RemoteVtepSpec

type RemoteVtepSpec struct {
	// ClusterName is the name of parent cluster who owns this remote VTEP.
	// +kubebuilder:validation:Required
	ClusterName string `json:"clusterName,omitempty"`
	// NodeName is the name of corresponding node in remote cluster.
	// +kubebuilder:validation:Required
	NodeName string `json:"nodeName,omitempty"`
	// VTEPInfo is the basic information of this VTEP. Always needed for a remote vtep.
	// +kubebuilder:validation:Required
	networkingv1.VTEPInfo `json:",inline"`
	// EndpointIPList is the IP list of all local endpoints of this VTEP.
	// +kubebuilder:validation:Optional
	EndpointIPList []string `json:"endpointIPList,omitempty"`
}

RemoteVtepSpec defines the desired state of RemoteVtep

func (*RemoteVtepSpec) DeepCopy

func (in *RemoteVtepSpec) DeepCopy() *RemoteVtepSpec

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

func (*RemoteVtepSpec) DeepCopyInto

func (in *RemoteVtepSpec) DeepCopyInto(out *RemoteVtepSpec)

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

type RemoteVtepStatus

type RemoteVtepStatus struct {
	// LastModifyTime shows the last timestamp when the remote VTEP was updated.
	// +kubebuilder:validation:Optional
	LastModifyTime metav1.Time `json:"lastModifyTime,omitempty"`
}

RemoteVtepStatus defines the observed state of RemoteVtep

func (*RemoteVtepStatus) DeepCopy

func (in *RemoteVtepStatus) DeepCopy() *RemoteVtepStatus

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

func (*RemoteVtepStatus) DeepCopyInto

func (in *RemoteVtepStatus) DeepCopyInto(out *RemoteVtepStatus)

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