v1alpha1

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: 13 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the infrastructure v1alpha1 API group +kubebuilder:object:generate=true +groupName=ipam.cluster.x-k8s.io +k8s:conversion-gen=sigs.k8s.io/cluster-api-ipam-provider-in-cluster/api/v1alpha2

Package v1alpha1 contains API Schema definitions for the ipam.cluster.x-k8s.io v1alpha1 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: "v1alpha1"}

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

func Convert_v1alpha1_GlobalInClusterIPPoolList_To_v1alpha2_GlobalInClusterIPPoolList

func Convert_v1alpha1_GlobalInClusterIPPoolList_To_v1alpha2_GlobalInClusterIPPoolList(in *GlobalInClusterIPPoolList, out *v1alpha2.GlobalInClusterIPPoolList, s conversion.Scope) error

Convert_v1alpha1_GlobalInClusterIPPoolList_To_v1alpha2_GlobalInClusterIPPoolList is an autogenerated conversion function.

func Convert_v1alpha1_GlobalInClusterIPPool_To_v1alpha2_GlobalInClusterIPPool

func Convert_v1alpha1_GlobalInClusterIPPool_To_v1alpha2_GlobalInClusterIPPool(in *GlobalInClusterIPPool, out *v1alpha2.GlobalInClusterIPPool, s conversion.Scope) error

Convert_v1alpha1_GlobalInClusterIPPool_To_v1alpha2_GlobalInClusterIPPool is an autogenerated conversion function.

func Convert_v1alpha1_InClusterIPPoolList_To_v1alpha2_InClusterIPPoolList

func Convert_v1alpha1_InClusterIPPoolList_To_v1alpha2_InClusterIPPoolList(in *InClusterIPPoolList, out *v1alpha2.InClusterIPPoolList, s conversion.Scope) error

Convert_v1alpha1_InClusterIPPoolList_To_v1alpha2_InClusterIPPoolList is an autogenerated conversion function.

func Convert_v1alpha1_InClusterIPPoolSpec_To_v1alpha2_InClusterIPPoolSpec

func Convert_v1alpha1_InClusterIPPoolSpec_To_v1alpha2_InClusterIPPoolSpec(in *InClusterIPPoolSpec, out *v1alpha2.InClusterIPPoolSpec, _ conversion.Scope) error

func Convert_v1alpha1_InClusterIPPoolStatusIPAddresses_To_v1alpha2_InClusterIPPoolStatusIPAddresses

func Convert_v1alpha1_InClusterIPPoolStatusIPAddresses_To_v1alpha2_InClusterIPPoolStatusIPAddresses(in *InClusterIPPoolStatusIPAddresses, out *v1alpha2.InClusterIPPoolStatusIPAddresses, s conversion.Scope) error

Convert_v1alpha1_InClusterIPPoolStatusIPAddresses_To_v1alpha2_InClusterIPPoolStatusIPAddresses is an autogenerated conversion function.

func Convert_v1alpha1_InClusterIPPoolStatus_To_v1alpha2_InClusterIPPoolStatus

func Convert_v1alpha1_InClusterIPPoolStatus_To_v1alpha2_InClusterIPPoolStatus(in *InClusterIPPoolStatus, out *v1alpha2.InClusterIPPoolStatus, s conversion.Scope) error

Convert_v1alpha1_InClusterIPPoolStatus_To_v1alpha2_InClusterIPPoolStatus is an autogenerated conversion function.

func Convert_v1alpha1_InClusterIPPool_To_v1alpha2_InClusterIPPool

func Convert_v1alpha1_InClusterIPPool_To_v1alpha2_InClusterIPPool(in *InClusterIPPool, out *v1alpha2.InClusterIPPool, s conversion.Scope) error

Convert_v1alpha1_InClusterIPPool_To_v1alpha2_InClusterIPPool is an autogenerated conversion function.

func Convert_v1alpha2_GlobalInClusterIPPoolList_To_v1alpha1_GlobalInClusterIPPoolList

func Convert_v1alpha2_GlobalInClusterIPPoolList_To_v1alpha1_GlobalInClusterIPPoolList(in *v1alpha2.GlobalInClusterIPPoolList, out *GlobalInClusterIPPoolList, s conversion.Scope) error

Convert_v1alpha2_GlobalInClusterIPPoolList_To_v1alpha1_GlobalInClusterIPPoolList is an autogenerated conversion function.

func Convert_v1alpha2_GlobalInClusterIPPool_To_v1alpha1_GlobalInClusterIPPool

func Convert_v1alpha2_GlobalInClusterIPPool_To_v1alpha1_GlobalInClusterIPPool(in *v1alpha2.GlobalInClusterIPPool, out *GlobalInClusterIPPool, s conversion.Scope) error

Convert_v1alpha2_GlobalInClusterIPPool_To_v1alpha1_GlobalInClusterIPPool is an autogenerated conversion function.

func Convert_v1alpha2_InClusterIPPoolList_To_v1alpha1_InClusterIPPoolList

func Convert_v1alpha2_InClusterIPPoolList_To_v1alpha1_InClusterIPPoolList(in *v1alpha2.InClusterIPPoolList, out *InClusterIPPoolList, s conversion.Scope) error

Convert_v1alpha2_InClusterIPPoolList_To_v1alpha1_InClusterIPPoolList is an autogenerated conversion function.

func Convert_v1alpha2_InClusterIPPoolSpec_To_v1alpha1_InClusterIPPoolSpec

func Convert_v1alpha2_InClusterIPPoolSpec_To_v1alpha1_InClusterIPPoolSpec(in *v1alpha2.InClusterIPPoolSpec, out *InClusterIPPoolSpec, s conversion.Scope) error

func Convert_v1alpha2_InClusterIPPoolStatusIPAddresses_To_v1alpha1_InClusterIPPoolStatusIPAddresses

func Convert_v1alpha2_InClusterIPPoolStatusIPAddresses_To_v1alpha1_InClusterIPPoolStatusIPAddresses(in *v1alpha2.InClusterIPPoolStatusIPAddresses, out *InClusterIPPoolStatusIPAddresses, s conversion.Scope) error

Convert_v1alpha2_InClusterIPPoolStatusIPAddresses_To_v1alpha1_InClusterIPPoolStatusIPAddresses is an autogenerated conversion function.

func Convert_v1alpha2_InClusterIPPoolStatus_To_v1alpha1_InClusterIPPoolStatus

func Convert_v1alpha2_InClusterIPPoolStatus_To_v1alpha1_InClusterIPPoolStatus(in *v1alpha2.InClusterIPPoolStatus, out *InClusterIPPoolStatus, s conversion.Scope) error

Convert_v1alpha2_InClusterIPPoolStatus_To_v1alpha1_InClusterIPPoolStatus is an autogenerated conversion function.

func Convert_v1alpha2_InClusterIPPool_To_v1alpha1_InClusterIPPool

func Convert_v1alpha2_InClusterIPPool_To_v1alpha1_InClusterIPPool(in *v1alpha2.InClusterIPPool, out *InClusterIPPool, s conversion.Scope) error

Convert_v1alpha2_InClusterIPPool_To_v1alpha1_InClusterIPPool is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

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) ConvertFrom

func (dst *GlobalInClusterIPPool) ConvertFrom(srcRaw conversion.Hub) error

ConvertTo converts v1alpha2.GlobalInClusterIPPool to v1alpha1.GlobalInClusterIPPool.

func (*GlobalInClusterIPPool) ConvertTo

func (src *GlobalInClusterIPPool) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts v1alpha1.GlobalInClusterIPPool to v1alpha2.GlobalInClusterIPPool.

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) 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) ConvertFrom

func (dst *GlobalInClusterIPPoolList) ConvertFrom(srcRaw conversion.Hub) error

ConvertTo converts v1alpha2.GlobalInClusterIPPoolList to v1alpha1.GlobalInClusterIPPoolList.

func (*GlobalInClusterIPPoolList) ConvertTo

func (src *GlobalInClusterIPPoolList) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts v1alpha1.GlobalInClusterIPPoolList to v1alpha2.GlobalInClusterIPPoolList.

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.

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) ConvertFrom

func (dst *InClusterIPPool) ConvertFrom(srcRaw conversion.Hub) error

ConvertTo converts v1alpha2.InClusterIPPool to v1alpha1.InClusterIPPool.

func (*InClusterIPPool) ConvertTo

func (src *InClusterIPPool) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts v1alpha1.InClusterIPPool to v1alpha2.InClusterIPPool.

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) 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) ConvertFrom

func (dst *InClusterIPPoolList) ConvertFrom(srcRaw conversion.Hub) error

ConvertTo converts v1alpha2.InClusterIPPoolList to v1alpha1.InClusterIPPoolList.

func (*InClusterIPPoolList) ConvertTo

func (src *InClusterIPPoolList) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts v1alpha1.InClusterIPPoolList to v1alpha2.InClusterIPPoolList.

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.

type InClusterIPPoolSpec

type InClusterIPPoolSpec struct {
	// Addresses is a list of IP addresses that can be assigned. This set of
	// addresses can be non-contiguous. Can be omitted if subnet, or first and
	// last is set.
	// +optional
	Addresses []string `json:"addresses,omitempty"`

	// Subnet is the subnet to assign IP addresses from.
	// Can be omitted if addresses or first, last and prefix are set.
	// +optional
	Subnet string `json:"subnet,omitempty"`

	// First is the first address that can be assigned.
	// If unset, the second address of subnet will be used.
	// +optional
	First string `json:"start,omitempty"`

	// Last is the last address that can be assigned.
	// Must come after first and needs to fit into a common subnet.
	// If unset, the second last address of subnet will be used.
	// +optional
	Last string `json:"end,omitempty"`

	// Prefix is the network prefix to use.
	// If unset the prefix from the subnet will be used.
	// +optional
	// +kubebuilder:validation:Maximum=128
	Prefix int `json:"prefix,omitempty"`

	// Gateway
	// +optional
	Gateway string `json:"gateway,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