Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the spiderpool v1 API group
Index ¶
- Variables
- type IPAllocationDetail
- type IPPool
- type IPPoolList
- type IPPoolSpec
- type IPPoolStatus
- type IPVersion
- type PodIPAllocation
- type PoolIPAllocation
- type PoolIPAllocations
- type ReservedIP
- type ReservedIPList
- type ReservedIPSpec
- type Route
- type Vlan
- type WorkloadEndpoint
- type WorkloadEndpointList
- type WorkloadEndpointStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "spiderpool.spidernet.io", 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 )
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:validation:Optional Vlan *Vlan `json:"vlan,omitempty"` // +kubebuilder:validation:Optional IPv4Gateway *string `json:"ipv4Gateway,omitempty"` // +kubebuilder:validation:Optional IPv6Gateway *string `json:"ipv6Gateway,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 IPPool ¶
type IPPool struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec IPPoolSpec `json:"spec,omitempty"` Status IPPoolStatus `json:"status,omitempty"` }
IPPool is the Schema for the ippools API
func (*IPPool) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPool.
func (*IPPool) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPPool) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IPPoolList ¶
type IPPoolList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []IPPool `json:"items"` }
IPPoolList contains a list of IPPool
func (*IPPoolList) DeepCopy ¶
func (in *IPPoolList) DeepCopy() *IPPoolList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPoolList.
func (*IPPoolList) DeepCopyInto ¶
func (in *IPPoolList) DeepCopyInto(out *IPPoolList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPPoolList) DeepCopyObject ¶
func (in *IPPoolList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IPPoolSpec ¶
type IPPoolSpec struct { // +kubebuilder:default=IPv4 // +kubebuilder:validation:Optional IPVersion *IPVersion `json:"ipVersion,omitempty"` // +kubebuilder:validation:Required Subnet string `json:"subnet"` // +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:validation:Optional Routes []Route `json:"routes,omitempty"` // +kubebuilder:default=0 // +kubebuilder:validation:Optional Vlan *Vlan `json:"vlan,omitempty"` // +kubebuilder:validation:Optional PodSelector *metav1.LabelSelector `json:"podSelector,omitempty"` // +kubebuilder:validation:Optional NamesapceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty"` // +kubebuilder:validation:Optional NodeSelector *metav1.LabelSelector `json:"nodeSelector,omitempty"` }
IPPoolSpec defines the desired state of IPPool
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 *int32 `json:"totalIPCount,omitempty"` // +kubebuilder:validation:Minimum=0 // +kubebuilder:validation:Optional AllocatedIPCount *int32 `json:"allocatedIPCount,omitempty"` }
IPPoolStatus defines the observed state of IPPool
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:Required Node string `json:"node"` // +kubebuilder:validation:MinItems=1 // +kubebuilder:validation:Required IPs []IPAllocationDetail `json:"ips"` // +kubebuilder:validation:Required CreationTime metav1.Time `json:"creationTime"` }
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"` }
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 ReservedIP ¶
type ReservedIP struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ReservedIPSpec `json:"spec,omitempty"` }
ReservedIP is the Schema for the reservedips API
func (*ReservedIP) DeepCopy ¶
func (in *ReservedIP) DeepCopy() *ReservedIP
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReservedIP.
func (*ReservedIP) DeepCopyInto ¶
func (in *ReservedIP) DeepCopyInto(out *ReservedIP)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReservedIP) DeepCopyObject ¶
func (in *ReservedIP) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReservedIPList ¶
type ReservedIPList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ReservedIP `json:"items"` }
ReservedIPList contains a list of ReservedIP
func (*ReservedIPList) DeepCopy ¶
func (in *ReservedIPList) DeepCopy() *ReservedIPList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReservedIPList.
func (*ReservedIPList) DeepCopyInto ¶
func (in *ReservedIPList) DeepCopyInto(out *ReservedIPList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReservedIPList) DeepCopyObject ¶
func (in *ReservedIPList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReservedIPSpec ¶
type ReservedIPSpec struct { // +kubebuilder:default=IPv4 // +kubebuilder:validation:Optional IPVersion *IPVersion `json:"ipVersion,omitempty"` // +kubebuilder:validation:Required IPs []string `json:"ips"` }
ReservedIPSpec defines the desired state of ReservedIP
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 WorkloadEndpoint ¶
type WorkloadEndpoint struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Status WorkloadEndpointStatus `json:"status,omitempty"` }
WorkloadEndpoint is the Schema for the workloadendpoints API
func (*WorkloadEndpoint) DeepCopy ¶
func (in *WorkloadEndpoint) DeepCopy() *WorkloadEndpoint
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadEndpoint.
func (*WorkloadEndpoint) DeepCopyInto ¶
func (in *WorkloadEndpoint) DeepCopyInto(out *WorkloadEndpoint)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkloadEndpoint) DeepCopyObject ¶
func (in *WorkloadEndpoint) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WorkloadEndpointList ¶
type WorkloadEndpointList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []WorkloadEndpoint `json:"items"` }
WorkloadEndpointList contains a list of WorkloadEndpoint
func (*WorkloadEndpointList) DeepCopy ¶
func (in *WorkloadEndpointList) DeepCopy() *WorkloadEndpointList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadEndpointList.
func (*WorkloadEndpointList) DeepCopyInto ¶
func (in *WorkloadEndpointList) DeepCopyInto(out *WorkloadEndpointList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkloadEndpointList) DeepCopyObject ¶
func (in *WorkloadEndpointList) 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"` }
WorkloadEndpointStatus defines the observed state of WorkloadEndpoint
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.