v1alpha2

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Overview

Package v1alpha2 contains API Schema definitions for the infrastructure v1alpha2 API group +kubebuilder:object:generate=true +groupName=ipam.cluster.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: "ipam.cluster.x-k8s.io", Version: "v1alpha2"}

	// 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 GlobalInClusterIPPool

type GlobalInClusterIPPool struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   InClusterIPPoolSpec   `json:"spec,omitempty"`
	Status InClusterIPPoolStatus `json:"status,omitempty"`
}

GlobalInClusterIPPool is the Schema for the global inclusterippools API. This pool type is cluster scoped. IPAddressClaims can reference pools of this type from any any namespace.

func (*GlobalInClusterIPPool) DeepCopy

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

func (*GlobalInClusterIPPool) DeepCopyInto

func (in *GlobalInClusterIPPool) DeepCopyInto(out *GlobalInClusterIPPool)

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

func (*GlobalInClusterIPPool) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*GlobalInClusterIPPool) Hub

func (*GlobalInClusterIPPool) Hub()

Hub marks GlobalInClusterIPPool as a conversion hub.

func (*GlobalInClusterIPPool) PoolSpec

PoolSpec implements the genericInClusterPool interface.

func (*GlobalInClusterIPPool) PoolStatus

PoolStatus implements the genericInClusterPool interface.

type GlobalInClusterIPPoolList

type GlobalInClusterIPPoolList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []GlobalInClusterIPPool `json:"items"`
}

GlobalInClusterIPPoolList contains a list of GlobalInClusterIPPool.

func (*GlobalInClusterIPPoolList) DeepCopy

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

func (*GlobalInClusterIPPoolList) DeepCopyInto

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

func (*GlobalInClusterIPPoolList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*GlobalInClusterIPPoolList) Hub

Hub marks GlobalInClusterIPPoolList as a conversion hub.

type InClusterIPPool

type InClusterIPPool struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   InClusterIPPoolSpec   `json:"spec,omitempty"`
	Status InClusterIPPoolStatus `json:"status,omitempty"`
}

InClusterIPPool is the Schema for the inclusterippools API.

func (*InClusterIPPool) DeepCopy

func (in *InClusterIPPool) DeepCopy() *InClusterIPPool

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

func (*InClusterIPPool) DeepCopyInto

func (in *InClusterIPPool) DeepCopyInto(out *InClusterIPPool)

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

func (*InClusterIPPool) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*InClusterIPPool) Hub

func (*InClusterIPPool) Hub()

Hub marks InClusterIPPool as a conversion hub.

func (*InClusterIPPool) PoolSpec

func (p *InClusterIPPool) PoolSpec() *InClusterIPPoolSpec

PoolSpec implements the genericInClusterPool interface.

func (*InClusterIPPool) PoolStatus

func (p *InClusterIPPool) PoolStatus() *InClusterIPPoolStatus

PoolStatus implements the genericInClusterPool interface.

type InClusterIPPoolList

type InClusterIPPoolList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []InClusterIPPool `json:"items"`
}

InClusterIPPoolList contains a list of InClusterIPPool.

func (*InClusterIPPoolList) DeepCopy

func (in *InClusterIPPoolList) DeepCopy() *InClusterIPPoolList

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

func (*InClusterIPPoolList) DeepCopyInto

func (in *InClusterIPPoolList) DeepCopyInto(out *InClusterIPPoolList)

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

func (*InClusterIPPoolList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*InClusterIPPoolList) Hub

func (*InClusterIPPoolList) Hub()

Hub marks InClusterIPPoolList as a conversion hub.

type InClusterIPPoolSpec

type InClusterIPPoolSpec struct {
	// Addresses is a list of IP addresses that can be assigned. This set of
	// addresses can be non-contiguous.
	Addresses []string `json:"addresses"`

	// Prefix is the network prefix to use.
	// +kubebuilder:validation:Maximum=128
	Prefix int `json:"prefix"`

	// Gateway
	// +optional
	Gateway string `json:"gateway,omitempty"`

	// AllocateReservedIPAddresses causes the provider to allocate the network
	// address (the first address in the inferred subnet) and broadcast address
	// (the last address in the inferred subnet) when IPv4. The provider will
	// allocate the anycast address address (the first address in the inferred
	// subnet) when IPv6.
	// +optional
	AllocateReservedIPAddresses bool `json:"allocateReservedIPAddresses,omitempty"`

	// ExcludedAddresses is a list of IP addresses, which will be excluded from
	// the set of assignable IP addresses.
	// +optional
	ExcludedAddresses []string `json:"excludedAddresses,omitempty"`
}

InClusterIPPoolSpec defines the desired state of InClusterIPPool.

func (*InClusterIPPoolSpec) DeepCopy

func (in *InClusterIPPoolSpec) DeepCopy() *InClusterIPPoolSpec

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

func (*InClusterIPPoolSpec) DeepCopyInto

func (in *InClusterIPPoolSpec) DeepCopyInto(out *InClusterIPPoolSpec)

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

type InClusterIPPoolStatus

type InClusterIPPoolStatus struct {
	// Addresses reports the count of total, free, and used IPs in the pool.
	// +optional
	Addresses *InClusterIPPoolStatusIPAddresses `json:"ipAddresses,omitempty"`
}

InClusterIPPoolStatus defines the observed state of InClusterIPPool.

func (*InClusterIPPoolStatus) DeepCopy

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

func (*InClusterIPPoolStatus) DeepCopyInto

func (in *InClusterIPPoolStatus) DeepCopyInto(out *InClusterIPPoolStatus)

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

type InClusterIPPoolStatusIPAddresses

type InClusterIPPoolStatusIPAddresses struct {
	// Total is the total number of IPs configured for the pool.
	// Counts greater than int can contain will report as math.MaxInt.
	Total int `json:"total"`

	// Free is the count of unallocated IPs in the pool.
	// Counts greater than int can contain will report as math.MaxInt.
	Free int `json:"free"`

	// Used is the count of allocated IPs in the pool.
	// Counts greater than int can contain will report as math.MaxInt.
	Used int `json:"used"`

	// Out of Range is the count of allocated IPs in the pool that is not
	// contained within spec.Addresses.
	// Counts greater than int can contain will report as math.MaxInt.
	OutOfRange int `json:"outOfRange"`
}

InClusterIPPoolStatusIPAddresses contains the count of total, free, and used IPs in a pool.

func (*InClusterIPPoolStatusIPAddresses) DeepCopy

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

func (*InClusterIPPoolStatusIPAddresses) DeepCopyInto

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