Documentation ¶
Overview ¶
API Schema definitions for configuring the installation of Calico and Calico Enterprise +k8s:deepcopy-gen=package,register +groupName=crd.projectcalico.org
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type BlockAffinity
- type BlockAffinityList
- type IPAMBlock
- func (in *IPAMBlock) DeepCopy() *IPAMBlock
- func (in *IPAMBlock) DeepCopyInto(out *IPAMBlock)
- func (in *IPAMBlock) DeepCopyObject() runtime.Object
- func (b *IPAMBlock) Empty() bool
- func (b *IPAMBlock) NumAddresses() int
- func (b *IPAMBlock) NumFreeAddresses() int
- func (b *IPAMBlock) NumReservedAddresses() int
- type IPAMBlockList
- type IPPool
- type IPPoolList
Constants ¶
const WindowsReservedHandle = "windows-reserved-ipam-handle"
windwowsReservedHandle is the handle used to reserve addresses required for Windows networking so that workloads do not get assigned these addresses.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "crd.projectcalico.org", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme is required by pkg/client/... AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/client/listers/...
Types ¶
type BlockAffinity ¶
type BlockAffinity struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec v3.BlockAffinitySpec `json:"spec,omitempty"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +k8s:openapi-gen=true +kubebuilder:resource:scope=Cluster
func (*BlockAffinity) DeepCopy ¶
func (in *BlockAffinity) DeepCopy() *BlockAffinity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BlockAffinity.
func (*BlockAffinity) DeepCopyInto ¶
func (in *BlockAffinity) DeepCopyInto(out *BlockAffinity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BlockAffinity) DeepCopyObject ¶
func (in *BlockAffinity) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BlockAffinityList ¶
type BlockAffinityList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []BlockAffinity `json:"items"` }
BlockAffinityList contains a list of BlockAffinity resources.
func (*BlockAffinityList) DeepCopy ¶
func (in *BlockAffinityList) DeepCopy() *BlockAffinityList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BlockAffinityList.
func (*BlockAffinityList) DeepCopyInto ¶
func (in *BlockAffinityList) DeepCopyInto(out *BlockAffinityList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BlockAffinityList) DeepCopyObject ¶
func (in *BlockAffinityList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IPAMBlock ¶
type IPAMBlock struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec v3.IPAMBlockSpec `json:"spec,omitempty"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +k8s:openapi-gen=true +kubebuilder:resource:scope=Cluster
func (*IPAMBlock) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAMBlock.
func (*IPAMBlock) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPAMBlock) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*IPAMBlock) NumAddresses ¶
Get number of addresses covered by the block
func (*IPAMBlock) NumFreeAddresses ¶
func (*IPAMBlock) NumReservedAddresses ¶
type IPAMBlockList ¶
type IPAMBlockList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []IPAMBlock `json:"items"` }
IPAMBlockList contains a list of IPAMBlock resources.
func (*IPAMBlockList) DeepCopy ¶
func (in *IPAMBlockList) DeepCopy() *IPAMBlockList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAMBlockList.
func (*IPAMBlockList) DeepCopyInto ¶
func (in *IPAMBlockList) DeepCopyInto(out *IPAMBlockList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPAMBlockList) DeepCopyObject ¶
func (in *IPAMBlockList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IPPool ¶
type IPPool struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec v3.IPPoolSpec `json:"spec,omitempty"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +k8s:openapi-gen=true +kubebuilder:resource:scope=Cluster
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.
func (IPPool) NumAddresses ¶
type IPPoolList ¶
type IPPoolList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []IPPool `json:"items"` }
IPPoolList contains a list of IPPool resources.
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.