v1

package
v0.0.0-...-fd663ac Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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

func (in *IPRange) DeepCopy() *IPRange

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

func (*IPRange) DeepCopyInto

func (in *IPRange) DeepCopyInto(out *IPRange)

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

func (*IPRange) DeepCopyObject

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

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 (r *IPRange) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*IPRange) ValidateCreate

func (r *IPRange) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*IPRange) ValidateDelete

func (r *IPRange) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*IPRange) ValidateUpdate

func (r *IPRange) ValidateUpdate(old runtime.Object) error

ValidateUpdate 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL