Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the spiderpool v1 API group
Index ¶
- Variables
- type IPAllocationDetail
- type IPPoolSpec
- type IPPoolStatus
- type PodIPAllocation
- type PoolIPAllocation
- type PoolIPAllocations
- type ReservedIPSpec
- type Route
- type SpiderEndpoint
- type SpiderEndpointList
- type SpiderIPPool
- type SpiderIPPoolList
- type SpiderReservedIP
- type SpiderReservedIPList
- type WorkloadEndpointStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: constant.SpiderpoolAPIGroup, Version: constant.SpiderpoolAPIVersionV1} // 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 )
Functions ¶
This section is empty.
Types ¶
type IPAllocationDetail ¶
type IPAllocationDetail struct { // +kubebuilder:validation:Required NIC string `json:"interface"` // +kubebuilder:validation:Optional IPv4 *string `json:"ipv4,omitempty"` // +kubebuilder:validation:Optional IPv6 *string `json:"ipv6,omitempty"` // +kubebuilder:validation:Optional IPv4Pool *string `json:"ipv4Pool,omitempty"` // +kubebuilder:validation:Optional IPv6Pool *string `json:"ipv6Pool,omitempty"` // +kubebuilder:default=0 // +kubebuilder:validation:Maximum=4095 // +kubebuilder:validation:Minimum=0 // +kubebuilder:validation:Optional Vlan *int64 `json:"vlan,omitempty"` // +kubebuilder:validation:Optional IPv4Gateway *string `json:"ipv4Gateway,omitempty"` // +kubebuilder:validation:Optional IPv6Gateway *string `json:"ipv6Gateway,omitempty"` // +kubebuilder:validation:Optional Routes []Route `json:"routes,omitempty"` }
TODO
func (*IPAllocationDetail) DeepCopy ¶
func (in *IPAllocationDetail) DeepCopy() *IPAllocationDetail
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAllocationDetail.
func (*IPAllocationDetail) DeepCopyInto ¶
func (in *IPAllocationDetail) DeepCopyInto(out *IPAllocationDetail)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPPoolSpec ¶
type IPPoolSpec struct { // +kubebuilder:validation:Enum=4;6 // +kubebuilder:validation:Optional IPVersion *int64 `json:"ipVersion,omitempty"` // +kubebuilder:validation:Required Subnet string `json:"subnet"` // +kubebuilder:validation:MinItems=1 // +kubebuilder:validation:Required IPs []string `json:"ips"` // +kubebuilder:default=false // +kubebuilder:validation:Optional Disable *bool `json:"disable,omitempty"` // +kubebuilder:validation:Optional ExcludeIPs []string `json:"excludeIPs,omitempty"` // +kubebuilder:validation:Optional Gateway *string `json:"gateway,omitempty"` // +kubebuilder:default=0 // +kubebuilder:validation:Maximum=4095 // +kubebuilder:validation:Minimum=0 // +kubebuilder:validation:Optional Vlan *int64 `json:"vlan,omitempty"` // +kubebuilder:validation:Optional Routes []Route `json:"routes,omitempty"` // +kubebuilder:validation:Optional PodAffinity *metav1.LabelSelector `json:"podAffinity,omitempty"` // +kubebuilder:validation:Optional NamesapceAffinity *metav1.LabelSelector `json:"namespaceAffinity,omitempty"` // +kubebuilder:validation:Optional NodeAffinity *metav1.LabelSelector `json:"nodeAffinity,omitempty"` }
IPPoolSpec defines the desired state of SpiderIPPool
func (*IPPoolSpec) DeepCopy ¶
func (in *IPPoolSpec) DeepCopy() *IPPoolSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPoolSpec.
func (*IPPoolSpec) DeepCopyInto ¶
func (in *IPPoolSpec) DeepCopyInto(out *IPPoolSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPPoolStatus ¶
type IPPoolStatus struct { // +kubebuilder:validation:Optional AllocatedIPs PoolIPAllocations `json:"allocatedIPs,omitempty"` // +kubebuilder:validation:Minimum=0 // +kubebuilder:validation:Optional TotalIPCount *int64 `json:"totalIPCount,omitempty"` // +kubebuilder:validation:Minimum=0 // +kubebuilder:validation:Optional AllocatedIPCount *int64 `json:"allocatedIPCount,omitempty"` }
IPPoolStatus defines the observed state of SpiderIPPool
func (*IPPoolStatus) DeepCopy ¶
func (in *IPPoolStatus) DeepCopy() *IPPoolStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPoolStatus.
func (*IPPoolStatus) DeepCopyInto ¶
func (in *IPPoolStatus) DeepCopyInto(out *IPPoolStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodIPAllocation ¶
type PodIPAllocation struct { // +kubebuilder:validation:Required ContainerID string `json:"containerID"` // +kubebuilder:validation:Optional Node *string `json:"node,omitempty"` // +kubebuilder:validation:Optional IPs []IPAllocationDetail `json:"ips,omitempty"` // +kubebuilder:validation:Optional CreationTime *metav1.Time `json:"creationTime,omitempty"` }
TODO
func (*PodIPAllocation) DeepCopy ¶
func (in *PodIPAllocation) DeepCopy() *PodIPAllocation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodIPAllocation.
func (*PodIPAllocation) DeepCopyInto ¶
func (in *PodIPAllocation) DeepCopyInto(out *PodIPAllocation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PoolIPAllocation ¶
type PoolIPAllocation struct { // +kubebuilder:validation:Required ContainerID string `json:"containerID"` // +kubebuilder:validation:Required NIC string `json:"interface"` // +kubebuilder:validation:Required Node string `json:"node"` // +kubebuilder:validation:Required Namespace string `json:"namespace"` // +kubebuilder:validation:Required Pod string `json:"pod"` // +kubebuilder:validation:Required OwnerControllerType string `json:"ownerControllerType"` }
PoolIPAllocation is an IP already has been allocated
func (*PoolIPAllocation) DeepCopy ¶
func (in *PoolIPAllocation) DeepCopy() *PoolIPAllocation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PoolIPAllocation.
func (*PoolIPAllocation) DeepCopyInto ¶
func (in *PoolIPAllocation) DeepCopyInto(out *PoolIPAllocation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PoolIPAllocations ¶
type PoolIPAllocations map[string]PoolIPAllocation
PoolIPAllocations is a map of allocated IPs indexed by IP
func (PoolIPAllocations) DeepCopy ¶
func (in PoolIPAllocations) DeepCopy() PoolIPAllocations
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PoolIPAllocations.
func (PoolIPAllocations) DeepCopyInto ¶
func (in PoolIPAllocations) DeepCopyInto(out *PoolIPAllocations)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReservedIPSpec ¶
type ReservedIPSpec struct { // +kubebuilder:validation:Enum=4;6 // +kubebuilder:validation:Optional IPVersion *int64 `json:"ipVersion,omitempty"` // +kubebuilder:validation:MinItems=1 // +kubebuilder:validation:Required IPs []string `json:"ips"` }
ReservedIPSpec defines the desired state of SpiderReservedIP
func (*ReservedIPSpec) DeepCopy ¶
func (in *ReservedIPSpec) DeepCopy() *ReservedIPSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReservedIPSpec.
func (*ReservedIPSpec) DeepCopyInto ¶
func (in *ReservedIPSpec) DeepCopyInto(out *ReservedIPSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Route ¶
type Route struct { // +kubebuilder:validation:Required Dst string `json:"dst"` // +kubebuilder:validation:Required Gw string `json:"gw"` }
func (*Route) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route.
func (*Route) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SpiderEndpoint ¶ added in v0.0.6
type SpiderEndpoint struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Status WorkloadEndpointStatus `json:"status,omitempty"` }
Spiderndpoint is the Schema for the spiderendpoints API
func (*SpiderEndpoint) DeepCopy ¶ added in v0.0.6
func (in *SpiderEndpoint) DeepCopy() *SpiderEndpoint
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpiderEndpoint.
func (*SpiderEndpoint) DeepCopyInto ¶ added in v0.0.6
func (in *SpiderEndpoint) DeepCopyInto(out *SpiderEndpoint)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SpiderEndpoint) DeepCopyObject ¶ added in v0.0.6
func (in *SpiderEndpoint) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SpiderEndpointList ¶ added in v0.0.6
type SpiderEndpointList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SpiderEndpoint `json:"items"` }
SpiderEndpointList contains a list of SpiderEndpoint
func (*SpiderEndpointList) DeepCopy ¶ added in v0.0.6
func (in *SpiderEndpointList) DeepCopy() *SpiderEndpointList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpiderEndpointList.
func (*SpiderEndpointList) DeepCopyInto ¶ added in v0.0.6
func (in *SpiderEndpointList) DeepCopyInto(out *SpiderEndpointList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SpiderEndpointList) DeepCopyObject ¶ added in v0.0.6
func (in *SpiderEndpointList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SpiderIPPool ¶ added in v0.0.6
type SpiderIPPool struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec IPPoolSpec `json:"spec,omitempty"` Status IPPoolStatus `json:"status,omitempty"` }
SpiderIPPool is the Schema for the spiderippools API
func (*SpiderIPPool) DeepCopy ¶ added in v0.0.6
func (in *SpiderIPPool) DeepCopy() *SpiderIPPool
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpiderIPPool.
func (*SpiderIPPool) DeepCopyInto ¶ added in v0.0.6
func (in *SpiderIPPool) DeepCopyInto(out *SpiderIPPool)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SpiderIPPool) DeepCopyObject ¶ added in v0.0.6
func (in *SpiderIPPool) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SpiderIPPoolList ¶ added in v0.0.6
type SpiderIPPoolList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SpiderIPPool `json:"items"` }
SpiderIPPoolList contains a list of SpiderIPPool
func (*SpiderIPPoolList) DeepCopy ¶ added in v0.0.6
func (in *SpiderIPPoolList) DeepCopy() *SpiderIPPoolList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpiderIPPoolList.
func (*SpiderIPPoolList) DeepCopyInto ¶ added in v0.0.6
func (in *SpiderIPPoolList) DeepCopyInto(out *SpiderIPPoolList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SpiderIPPoolList) DeepCopyObject ¶ added in v0.0.6
func (in *SpiderIPPoolList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SpiderReservedIP ¶ added in v0.0.6
type SpiderReservedIP struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ReservedIPSpec `json:"spec,omitempty"` }
SpiderReservedIP is the Schema for the spiderreservedips API
func (*SpiderReservedIP) DeepCopy ¶ added in v0.0.6
func (in *SpiderReservedIP) DeepCopy() *SpiderReservedIP
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpiderReservedIP.
func (*SpiderReservedIP) DeepCopyInto ¶ added in v0.0.6
func (in *SpiderReservedIP) DeepCopyInto(out *SpiderReservedIP)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SpiderReservedIP) DeepCopyObject ¶ added in v0.0.6
func (in *SpiderReservedIP) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SpiderReservedIPList ¶ added in v0.0.6
type SpiderReservedIPList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SpiderReservedIP `json:"items"` }
SpiderReservedIPList contains a list of SpiderReservedIP
func (*SpiderReservedIPList) DeepCopy ¶ added in v0.0.6
func (in *SpiderReservedIPList) DeepCopy() *SpiderReservedIPList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpiderReservedIPList.
func (*SpiderReservedIPList) DeepCopyInto ¶ added in v0.0.6
func (in *SpiderReservedIPList) DeepCopyInto(out *SpiderReservedIPList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SpiderReservedIPList) DeepCopyObject ¶ added in v0.0.6
func (in *SpiderReservedIPList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WorkloadEndpointStatus ¶
type WorkloadEndpointStatus struct { // +kubebuilder:validation:Optional Current *PodIPAllocation `json:"current,omitempty"` // +kubebuilder:validation:Optional History []PodIPAllocation `json:"history,omitempty"` // +kubebuilder:validation:Optional OwnerControllerType string `json:"ownerControllerType"` }
WorkloadEndpointStatus defines the observed state of SpiderEndpoint
func (*WorkloadEndpointStatus) DeepCopy ¶
func (in *WorkloadEndpointStatus) DeepCopy() *WorkloadEndpointStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadEndpointStatus.
func (*WorkloadEndpointStatus) DeepCopyInto ¶
func (in *WorkloadEndpointStatus) DeepCopyInto(out *WorkloadEndpointStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.