Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the clusterip v1 API group +kubebuilder:object:generate=true +groupName=clusterip.allocator.x-k8s.io
Index ¶
- Variables
- type IPRange
- func (in *IPRange) DeepCopy() *IPRange
- func (in *IPRange) DeepCopyInto(out *IPRange)
- func (in *IPRange) DeepCopyObject() runtime.Object
- func (r *IPRange) Default()
- func (r *IPRange) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *IPRange) ValidateCreate() error
- func (r *IPRange) ValidateDelete() error
- func (r *IPRange) ValidateUpdate(old runtime.Object) error
- type IPRangeList
- type IPRangeSpec
- type IPRangeStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "clusterip.allocator.x-k8s.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 IPRange ¶
type IPRange struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec IPRangeSpec `json:"spec,omitempty"` Status IPRangeStatus `json:"status,omitempty"` }
IPRange is the Schema for the ipranges API
func (*IPRange) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPRange.
func (*IPRange) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPRange) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*IPRange) Default ¶
func (r *IPRange) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*IPRange) SetupWebhookWithManager ¶
func (*IPRange) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*IPRange) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type IPRangeList ¶
type IPRangeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []IPRange `json:"items"` }
IPRangeList contains a list of IPRange
func (*IPRangeList) DeepCopy ¶
func (in *IPRangeList) DeepCopy() *IPRangeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPRangeList.
func (*IPRangeList) DeepCopyInto ¶
func (in *IPRangeList) DeepCopyInto(out *IPRangeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPRangeList) DeepCopyObject ¶
func (in *IPRangeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IPRangeSpec ¶
type IPRangeSpec struct { // Range represent the IP range in CIDR format // i.e. 10.0.0.0/16 or 2001:db2::/64 // +kubebuilder:validation:MaxLength=128 // +kubebuilder:validation:MinLength=8 Range string `json:"range,omitempty"` // +optional // Addresses represent the IP addresses of the range and its status. // Each address may be associated to one kubernetes object (i.e. Services) // +listType=set Addresses []string `json:"addresses,omitempty"` }
IPRangeSpec defines the desired state of IPRange
func (*IPRangeSpec) DeepCopy ¶
func (in *IPRangeSpec) DeepCopy() *IPRangeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPRangeSpec.
func (*IPRangeSpec) DeepCopyInto ¶
func (in *IPRangeSpec) DeepCopyInto(out *IPRangeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPRangeStatus ¶
type IPRangeStatus struct { // Free represent the number of IP addresses that are not allocated in the Range // +optional Free int64 `json:"free,omitempty"` }
IPRangeStatus defines the observed state of IPRange
func (*IPRangeStatus) DeepCopy ¶
func (in *IPRangeStatus) DeepCopy() *IPRangeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPRangeStatus.
func (*IPRangeStatus) DeepCopyInto ¶
func (in *IPRangeStatus) DeepCopyInto(out *IPRangeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.