Documentation ¶
Overview ¶
v1alpha1 is the v1alpha1 version of the API.
Index ¶
- Constants
- Variables
- func Convert_ipam_IPClaimList_To_v1alpha1_IPClaimList(in *ipam.IPClaimList, out *IPClaimList, s conversion.Scope) error
- func Convert_ipam_IPClaimSpec_To_v1alpha1_IPClaimSpec(in *ipam.IPClaimSpec, out *IPClaimSpec, s conversion.Scope) error
- func Convert_ipam_IPClaimStatus_To_v1alpha1_IPClaimStatus(in *ipam.IPClaimStatus, out *IPClaimStatus, s conversion.Scope) error
- func Convert_ipam_IPClaim_To_v1alpha1_IPClaim(in *ipam.IPClaim, out *IPClaim, s conversion.Scope) error
- func Convert_ipam_IPEntryList_To_v1alpha1_IPEntryList(in *ipam.IPEntryList, out *IPEntryList, s conversion.Scope) error
- func Convert_ipam_IPEntrySpec_To_v1alpha1_IPEntrySpec(in *ipam.IPEntrySpec, out *IPEntrySpec, s conversion.Scope) error
- func Convert_ipam_IPEntryStatus_To_v1alpha1_IPEntryStatus(in *ipam.IPEntryStatus, out *IPEntryStatus, s conversion.Scope) error
- func Convert_ipam_IPEntry_To_v1alpha1_IPEntry(in *ipam.IPEntry, out *IPEntry, s conversion.Scope) error
- func Convert_ipam_IPIndexList_To_v1alpha1_IPIndexList(in *ipam.IPIndexList, out *IPIndexList, s conversion.Scope) error
- func Convert_ipam_IPIndexSpec_To_v1alpha1_IPIndexSpec(in *ipam.IPIndexSpec, out *IPIndexSpec, s conversion.Scope) error
- func Convert_ipam_IPIndexStatus_To_v1alpha1_IPIndexStatus(in *ipam.IPIndexStatus, out *IPIndexStatus, s conversion.Scope) error
- func Convert_ipam_IPIndex_To_v1alpha1_IPIndex(in *ipam.IPIndex, out *IPIndex, s conversion.Scope) error
- func Convert_ipam_Prefix_To_v1alpha1_Prefix(in *ipam.Prefix, out *Prefix, s conversion.Scope) error
- func Convert_v1alpha1_IPClaimList_To_ipam_IPClaimList(in *IPClaimList, out *ipam.IPClaimList, s conversion.Scope) error
- func Convert_v1alpha1_IPClaimSpec_To_ipam_IPClaimSpec(in *IPClaimSpec, out *ipam.IPClaimSpec, s conversion.Scope) error
- func Convert_v1alpha1_IPClaimStatus_To_ipam_IPClaimStatus(in *IPClaimStatus, out *ipam.IPClaimStatus, s conversion.Scope) error
- func Convert_v1alpha1_IPClaim_To_ipam_IPClaim(in *IPClaim, out *ipam.IPClaim, s conversion.Scope) error
- func Convert_v1alpha1_IPEntryList_To_ipam_IPEntryList(in *IPEntryList, out *ipam.IPEntryList, s conversion.Scope) error
- func Convert_v1alpha1_IPEntrySpec_To_ipam_IPEntrySpec(in *IPEntrySpec, out *ipam.IPEntrySpec, s conversion.Scope) error
- func Convert_v1alpha1_IPEntryStatus_To_ipam_IPEntryStatus(in *IPEntryStatus, out *ipam.IPEntryStatus, s conversion.Scope) error
- func Convert_v1alpha1_IPEntry_To_ipam_IPEntry(in *IPEntry, out *ipam.IPEntry, s conversion.Scope) error
- func Convert_v1alpha1_IPIndexList_To_ipam_IPIndexList(in *IPIndexList, out *ipam.IPIndexList, s conversion.Scope) error
- func Convert_v1alpha1_IPIndexSpec_To_ipam_IPIndexSpec(in *IPIndexSpec, out *ipam.IPIndexSpec, s conversion.Scope) error
- func Convert_v1alpha1_IPIndexStatus_To_ipam_IPIndexStatus(in *IPIndexStatus, out *ipam.IPIndexStatus, s conversion.Scope) error
- func Convert_v1alpha1_IPIndex_To_ipam_IPIndex(in *IPIndex, out *ipam.IPIndex, s conversion.Scope) error
- func Convert_v1alpha1_Prefix_To_ipam_Prefix(in *Prefix, out *ipam.Prefix, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type IPClaim
- func (in *IPClaim) DeepCopy() *IPClaim
- func (in *IPClaim) DeepCopyInto(out *IPClaim)
- func (in *IPClaim) DeepCopyObject() runtime.Object
- func (r *IPClaim) GetCondition(t condv1alpha1.ConditionType) condv1alpha1.Condition
- func (IPClaim) GetGroupVersionResource() schema.GroupVersionResource
- func (r *IPClaim) GetKey() store.Key
- func (r *IPClaim) GetNamespacedName() types.NamespacedName
- func (r *IPClaim) GetObjectMeta() *metav1.ObjectMeta
- func (IPClaim) IsStorageVersion() bool
- func (IPClaim) NamespaceScoped() bool
- func (IPClaim) New() runtime.Object
- func (IPClaim) NewList() runtime.Object
- func (IPClaim) RegisterConversions() func(s *runtime.Scheme) error
- func (r *IPClaim) SetConditions(c ...condv1alpha1.Condition)
- type IPClaimList
- type IPClaimSpec
- type IPClaimStatus
- type IPClaimSummaryType
- type IPClaimType
- type IPEntry
- func (in *IPEntry) DeepCopy() *IPEntry
- func (in *IPEntry) DeepCopyInto(out *IPEntry)
- func (in *IPEntry) DeepCopyObject() runtime.Object
- func (IPEntry) GetGroupVersionResource() schema.GroupVersionResource
- func (r *IPEntry) GetObjectMeta() *metav1.ObjectMeta
- func (IPEntry) IsStorageVersion() bool
- func (IPEntry) NamespaceScoped() bool
- func (IPEntry) New() runtime.Object
- func (IPEntry) NewList() runtime.Object
- func (IPEntry) RegisterConversions() func(s *runtime.Scheme) error
- type IPEntryList
- type IPEntrySpec
- type IPEntryStatus
- type IPIndex
- func (in *IPIndex) DeepCopy() *IPIndex
- func (in *IPIndex) DeepCopyInto(out *IPIndex)
- func (in *IPIndex) DeepCopyObject() runtime.Object
- func (r *IPIndex) GetCondition(t condv1alpha1.ConditionType) condv1alpha1.Condition
- func (IPIndex) GetGroupVersionResource() schema.GroupVersionResource
- func (r *IPIndex) GetKey() store.Key
- func (r *IPIndex) GetNamespacedName() types.NamespacedName
- func (r *IPIndex) GetObjectMeta() *metav1.ObjectMeta
- func (IPIndex) IsStorageVersion() bool
- func (IPIndex) NamespaceScoped() bool
- func (IPIndex) New() runtime.Object
- func (IPIndex) NewList() runtime.Object
- func (IPIndex) RegisterConversions() func(s *runtime.Scheme) error
- func (r *IPIndex) SetConditions(c ...condv1alpha1.Condition)
- type IPIndexList
- type IPIndexSpec
- type IPIndexStatus
- type IPPrefixType
- type Prefix
Constants ¶
const ( Group = "ipam.be.kuid.dev" Version = "v1alpha1" )
Variables ¶
var ( IPClaimKind = reflect.TypeOf(IPClaim{}).Name() IPClaimListKind = reflect.TypeOf(IPClaimList{}).Name() )
var ( IPEntryKind = reflect.TypeOf(IPEntry{}).Name() IPEntryListKind = reflect.TypeOf(IPEntryList{}).Name() )
var ( IPIndexKind = reflect.TypeOf(IPIndex{}).Name() IPIndexListKind = reflect.TypeOf(IPIndexList{}).Name() )
var ( // SchemeGroupVersion contains the API group and version information for the types in this package. SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version} // AddToScheme applies all the stored functions to the scheme. A non-nil error // indicates that one function failed and the attempt was abandoned. //AddToScheme = (&runtime.SchemeBuilder{}).AddToScheme AddToScheme = localSchemeBuilder.AddToScheme )
Functions ¶
func Convert_ipam_IPClaimList_To_v1alpha1_IPClaimList ¶ added in v0.0.8
func Convert_ipam_IPClaimList_To_v1alpha1_IPClaimList(in *ipam.IPClaimList, out *IPClaimList, s conversion.Scope) error
Convert_ipam_IPClaimList_To_v1alpha1_IPClaimList is an autogenerated conversion function.
func Convert_ipam_IPClaimSpec_To_v1alpha1_IPClaimSpec ¶ added in v0.0.8
func Convert_ipam_IPClaimSpec_To_v1alpha1_IPClaimSpec(in *ipam.IPClaimSpec, out *IPClaimSpec, s conversion.Scope) error
Convert_ipam_IPClaimSpec_To_v1alpha1_IPClaimSpec is an autogenerated conversion function.
func Convert_ipam_IPClaimStatus_To_v1alpha1_IPClaimStatus ¶ added in v0.0.8
func Convert_ipam_IPClaimStatus_To_v1alpha1_IPClaimStatus(in *ipam.IPClaimStatus, out *IPClaimStatus, s conversion.Scope) error
Convert_ipam_IPClaimStatus_To_v1alpha1_IPClaimStatus is an autogenerated conversion function.
func Convert_ipam_IPClaim_To_v1alpha1_IPClaim ¶ added in v0.0.8
func Convert_ipam_IPClaim_To_v1alpha1_IPClaim(in *ipam.IPClaim, out *IPClaim, s conversion.Scope) error
Convert_ipam_IPClaim_To_v1alpha1_IPClaim is an autogenerated conversion function.
func Convert_ipam_IPEntryList_To_v1alpha1_IPEntryList ¶ added in v0.0.8
func Convert_ipam_IPEntryList_To_v1alpha1_IPEntryList(in *ipam.IPEntryList, out *IPEntryList, s conversion.Scope) error
Convert_ipam_IPEntryList_To_v1alpha1_IPEntryList is an autogenerated conversion function.
func Convert_ipam_IPEntrySpec_To_v1alpha1_IPEntrySpec ¶ added in v0.0.8
func Convert_ipam_IPEntrySpec_To_v1alpha1_IPEntrySpec(in *ipam.IPEntrySpec, out *IPEntrySpec, s conversion.Scope) error
Convert_ipam_IPEntrySpec_To_v1alpha1_IPEntrySpec is an autogenerated conversion function.
func Convert_ipam_IPEntryStatus_To_v1alpha1_IPEntryStatus ¶ added in v0.0.8
func Convert_ipam_IPEntryStatus_To_v1alpha1_IPEntryStatus(in *ipam.IPEntryStatus, out *IPEntryStatus, s conversion.Scope) error
Convert_ipam_IPEntryStatus_To_v1alpha1_IPEntryStatus is an autogenerated conversion function.
func Convert_ipam_IPEntry_To_v1alpha1_IPEntry ¶ added in v0.0.8
func Convert_ipam_IPEntry_To_v1alpha1_IPEntry(in *ipam.IPEntry, out *IPEntry, s conversion.Scope) error
Convert_ipam_IPEntry_To_v1alpha1_IPEntry is an autogenerated conversion function.
func Convert_ipam_IPIndexList_To_v1alpha1_IPIndexList ¶ added in v0.0.8
func Convert_ipam_IPIndexList_To_v1alpha1_IPIndexList(in *ipam.IPIndexList, out *IPIndexList, s conversion.Scope) error
Convert_ipam_IPIndexList_To_v1alpha1_IPIndexList is an autogenerated conversion function.
func Convert_ipam_IPIndexSpec_To_v1alpha1_IPIndexSpec ¶ added in v0.0.8
func Convert_ipam_IPIndexSpec_To_v1alpha1_IPIndexSpec(in *ipam.IPIndexSpec, out *IPIndexSpec, s conversion.Scope) error
Convert_ipam_IPIndexSpec_To_v1alpha1_IPIndexSpec is an autogenerated conversion function.
func Convert_ipam_IPIndexStatus_To_v1alpha1_IPIndexStatus ¶ added in v0.0.8
func Convert_ipam_IPIndexStatus_To_v1alpha1_IPIndexStatus(in *ipam.IPIndexStatus, out *IPIndexStatus, s conversion.Scope) error
Convert_ipam_IPIndexStatus_To_v1alpha1_IPIndexStatus is an autogenerated conversion function.
func Convert_ipam_IPIndex_To_v1alpha1_IPIndex ¶ added in v0.0.8
func Convert_ipam_IPIndex_To_v1alpha1_IPIndex(in *ipam.IPIndex, out *IPIndex, s conversion.Scope) error
Convert_ipam_IPIndex_To_v1alpha1_IPIndex is an autogenerated conversion function.
func Convert_ipam_Prefix_To_v1alpha1_Prefix ¶ added in v0.0.8
Convert_ipam_Prefix_To_v1alpha1_Prefix is an autogenerated conversion function.
func Convert_v1alpha1_IPClaimList_To_ipam_IPClaimList ¶ added in v0.0.8
func Convert_v1alpha1_IPClaimList_To_ipam_IPClaimList(in *IPClaimList, out *ipam.IPClaimList, s conversion.Scope) error
Convert_v1alpha1_IPClaimList_To_ipam_IPClaimList is an autogenerated conversion function.
func Convert_v1alpha1_IPClaimSpec_To_ipam_IPClaimSpec ¶ added in v0.0.8
func Convert_v1alpha1_IPClaimSpec_To_ipam_IPClaimSpec(in *IPClaimSpec, out *ipam.IPClaimSpec, s conversion.Scope) error
Convert_v1alpha1_IPClaimSpec_To_ipam_IPClaimSpec is an autogenerated conversion function.
func Convert_v1alpha1_IPClaimStatus_To_ipam_IPClaimStatus ¶ added in v0.0.8
func Convert_v1alpha1_IPClaimStatus_To_ipam_IPClaimStatus(in *IPClaimStatus, out *ipam.IPClaimStatus, s conversion.Scope) error
Convert_v1alpha1_IPClaimStatus_To_ipam_IPClaimStatus is an autogenerated conversion function.
func Convert_v1alpha1_IPClaim_To_ipam_IPClaim ¶ added in v0.0.8
func Convert_v1alpha1_IPClaim_To_ipam_IPClaim(in *IPClaim, out *ipam.IPClaim, s conversion.Scope) error
Convert_v1alpha1_IPClaim_To_ipam_IPClaim is an autogenerated conversion function.
func Convert_v1alpha1_IPEntryList_To_ipam_IPEntryList ¶ added in v0.0.8
func Convert_v1alpha1_IPEntryList_To_ipam_IPEntryList(in *IPEntryList, out *ipam.IPEntryList, s conversion.Scope) error
Convert_v1alpha1_IPEntryList_To_ipam_IPEntryList is an autogenerated conversion function.
func Convert_v1alpha1_IPEntrySpec_To_ipam_IPEntrySpec ¶ added in v0.0.8
func Convert_v1alpha1_IPEntrySpec_To_ipam_IPEntrySpec(in *IPEntrySpec, out *ipam.IPEntrySpec, s conversion.Scope) error
Convert_v1alpha1_IPEntrySpec_To_ipam_IPEntrySpec is an autogenerated conversion function.
func Convert_v1alpha1_IPEntryStatus_To_ipam_IPEntryStatus ¶ added in v0.0.8
func Convert_v1alpha1_IPEntryStatus_To_ipam_IPEntryStatus(in *IPEntryStatus, out *ipam.IPEntryStatus, s conversion.Scope) error
Convert_v1alpha1_IPEntryStatus_To_ipam_IPEntryStatus is an autogenerated conversion function.
func Convert_v1alpha1_IPEntry_To_ipam_IPEntry ¶ added in v0.0.8
func Convert_v1alpha1_IPEntry_To_ipam_IPEntry(in *IPEntry, out *ipam.IPEntry, s conversion.Scope) error
Convert_v1alpha1_IPEntry_To_ipam_IPEntry is an autogenerated conversion function.
func Convert_v1alpha1_IPIndexList_To_ipam_IPIndexList ¶ added in v0.0.8
func Convert_v1alpha1_IPIndexList_To_ipam_IPIndexList(in *IPIndexList, out *ipam.IPIndexList, s conversion.Scope) error
Convert_v1alpha1_IPIndexList_To_ipam_IPIndexList is an autogenerated conversion function.
func Convert_v1alpha1_IPIndexSpec_To_ipam_IPIndexSpec ¶ added in v0.0.8
func Convert_v1alpha1_IPIndexSpec_To_ipam_IPIndexSpec(in *IPIndexSpec, out *ipam.IPIndexSpec, s conversion.Scope) error
Convert_v1alpha1_IPIndexSpec_To_ipam_IPIndexSpec is an autogenerated conversion function.
func Convert_v1alpha1_IPIndexStatus_To_ipam_IPIndexStatus ¶ added in v0.0.8
func Convert_v1alpha1_IPIndexStatus_To_ipam_IPIndexStatus(in *IPIndexStatus, out *ipam.IPIndexStatus, s conversion.Scope) error
Convert_v1alpha1_IPIndexStatus_To_ipam_IPIndexStatus is an autogenerated conversion function.
func Convert_v1alpha1_IPIndex_To_ipam_IPIndex ¶ added in v0.0.8
func Convert_v1alpha1_IPIndex_To_ipam_IPIndex(in *IPIndex, out *ipam.IPIndex, s conversion.Scope) error
Convert_v1alpha1_IPIndex_To_ipam_IPIndex is an autogenerated conversion function.
func Convert_v1alpha1_Prefix_To_ipam_Prefix ¶ added in v0.0.8
Convert_v1alpha1_Prefix_To_ipam_Prefix is an autogenerated conversion function.
func RegisterConversions ¶ added in v0.0.8
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶ added in v0.0.8
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type IPClaim ¶
type IPClaim struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Spec IPClaimSpec `json:"spec,omitempty" yaml:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` Status IPClaimStatus `json:"status,omitempty" yaml:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:categories={kuid} IPClaim is the Schema for the ipclaim API
func (*IPClaim) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPClaim.
func (*IPClaim) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPClaim) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*IPClaim) GetCondition ¶
func (r *IPClaim) GetCondition(t condv1alpha1.ConditionType) condv1alpha1.Condition
GetCondition returns the condition based on the condition kind
func (IPClaim) GetGroupVersionResource ¶
func (IPClaim) GetGroupVersionResource() schema.GroupVersionResource
func (*IPClaim) GetNamespacedName ¶
func (r *IPClaim) GetNamespacedName() types.NamespacedName
func (*IPClaim) GetObjectMeta ¶
func (r *IPClaim) GetObjectMeta() *metav1.ObjectMeta
GetObjectMeta implements resource.Object GetObjectMeta implements resource.Object
func (IPClaim) IsStorageVersion ¶
IsStorageVersion returns true -- Config is used as the internal version. IsStorageVersion implements resource.Object
func (IPClaim) NamespaceScoped ¶
NamespaceScoped returns true to indicate Fortune is a namespaced resource. NamespaceScoped implements resource.Object
func (IPClaim) RegisterConversions ¶ added in v0.0.8
RegisterConversions registers the conversions. RegisterConversions implements resource.MultiVersionObject
func (*IPClaim) SetConditions ¶
func (r *IPClaim) SetConditions(c ...condv1alpha1.Condition)
SetConditions sets the conditions on the resource. it allows for 0, 1 or more conditions to be set at once
type IPClaimList ¶
type IPClaimList struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ListMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Items []IPClaim `json:"items" yaml:"items" protobuf:"bytes,2,rep,name=items"` }
IPClaimList contains a list of IPClaims +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*IPClaimList) DeepCopy ¶
func (in *IPClaimList) DeepCopy() *IPClaimList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPClaimList.
func (*IPClaimList) DeepCopyInto ¶
func (in *IPClaimList) DeepCopyInto(out *IPClaimList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPClaimList) DeepCopyObject ¶
func (in *IPClaimList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*IPClaimList) GetListMeta ¶
func (r *IPClaimList) GetListMeta() *metav1.ListMeta
GetListMeta returns the ListMeta GetListMeta implements resource.ObjectList
type IPClaimSpec ¶
type IPClaimSpec struct { // Index defines the index for the IP Entry Index string `json:"index" yaml:"index" protobuf:"bytes,1,opt,name=index"` // PrefixType defines the prefixtype of IPEntry; for address and range claims this is not relevant // - network kind is used for physical, virtual nics on a device // - pool kind is used for allocating dedicated IP addresses // - aggregate kind is used for claiming an aggregate prefix; only used for networkInstance prefixes // +kubebuilder:validation:Enum=`network`;`aggregate`;`pool`; // +optional PrefixType *IPPrefixType `json:"prefixType,omitempty" yaml:"prefixType,omitempty" protobuf:"bytes,2,opt,name=prefixType"` // Prefix defines the prefix for the IP claim // +optional Prefix *string `json:"prefix,omitempty" yaml:"prefix,omitempty" protobuf:"bytes,3,opt,name=prefix"` // Address defines the address for the IP claim // +optional Address *string `json:"address,omitempty" yaml:"address,omitempty" protobuf:"bytes,4,opt,name=address"` // Range defines the range for the IP claim // +optional Range *string `json:"range,omitempty" yaml:"range,omitempty" protobuf:"bytes,5,opt,name=range"` // DefaultGateway defines if the address acts as a default gateway // +optional DefaultGateway *bool `json:"defaultGateway,omitempty" yaml:"defaultGateway,omitempty" protobuf:"varint,6,opt,name=defaultGateway"` // CreatePrefix defines if this prefix must be created. Only used for dynamic prefixes // e.g. non /32 ipv4 and non /128 ipv6 prefixes // +optional CreatePrefix *bool `json:"createPrefix,omitempty" yaml:"createPrefix,omitempty" protobuf:"varint,7,opt,name=createPrefix"` // PrefixLength defines the prefix length for the IP Claim, Must be set when CreatePrefic is set // If not present we use assume /32 for ipv4 and /128 for ipv6 // +optional PrefixLength *uint32 `json:"prefixLength,omitempty" yaml:"prefixLength,omitempty" protobuf:"varint,8,opt,name=prefixLength"` // AddressFamily defines the address family for the IP claim // +kubebuilder:validation:Enum=`ipv4`;`ipv6` // +kubebuilder:validation:Optional // +optional AddressFamily *iputil.AddressFamily `json:"addressFamily,omitempty" yaml:"addressFamily,omitempty" protobuf:"bytes,9,opt,name=addressFamily"` // Index defines the index of the IP Claim, used to get a deterministic IP from a prefix // If not present we claim a random prefix from a prefix // +kubebuilder:validation:Optional // +optional Idx *uint32 `json:"idx,omitempty" yaml:"idx,omitempty" protobuf:"varint,10,opt,name=idx"` // ClaimLabels define the user defined labels and selector labels used // in resource claim commonv1alpha1.ClaimLabels `json:",inline" yaml:",inline" protobuf:"bytes,11,opt,name=claimLabels"` }
IPClaimSpec defines the desired state of IPClaim
func (*IPClaimSpec) DeepCopy ¶
func (in *IPClaimSpec) DeepCopy() *IPClaimSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPClaimSpec.
func (*IPClaimSpec) DeepCopyInto ¶
func (in *IPClaimSpec) DeepCopyInto(out *IPClaimSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPClaimStatus ¶
type IPClaimStatus struct { // ConditionedStatus provides the status of the IPClain using conditions // - a ready condition indicates the overall status of the resource condv1alpha1.ConditionedStatus `json:",inline" yaml:",inline" protobuf:"bytes,1,opt,name=conditionedStatus"` // Range defines the range, claimed through the IPAM backend // +optional Range *string `json:"range,omitempty" yaml:"range,omitempty" protobuf:"bytes,2,opt,name=range"` // Address defines the address, claimed through the IPAM backend // +optional Address *string `json:"address,omitempty" yaml:"address,omitempty" protobuf:"bytes,3,opt,name=address"` // Prefix defines the prefix, claimed through the IPAM backend // +optional Prefix *string `json:"prefix,omitempty" yaml:"prefix,omitempty" protobuf:"bytes,4,opt,name=prefix"` // DefaultGateway defines the default gateway IP for the claimed prefix // DefaultGateway is only relevant for prefix kind = network // +optional DefaultGateway *string `json:"defaultGateway,omitempty" yaml:"defaultGateway,omitempty" protobuf:"bytes,5,opt,name=defaultGateway"` // ExpiryTime defines when the claim expires // +kubebuilder:validation:Optional // +optional ExpiryTime *string `json:"expiryTime,omitempty" yaml:"expiryTime,omitempty" protobuf:"bytes,6,opt,name=expiryTime"` }
IPClaimStatus defines the observed state of IPClaim
func (*IPClaimStatus) DeepCopy ¶
func (in *IPClaimStatus) DeepCopy() *IPClaimStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPClaimStatus.
func (*IPClaimStatus) DeepCopyInto ¶
func (in *IPClaimStatus) DeepCopyInto(out *IPClaimStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPClaimSummaryType ¶
type IPClaimSummaryType string
const ( IPClaimSummaryType_Prefix IPClaimSummaryType = "prefix" IPClaimSummaryType_Address IPClaimSummaryType = "address" IPClaimSummaryType_Range IPClaimSummaryType = "range" IPClaimSummaryType_Invalid IPClaimSummaryType = "invalid" )
func GetIPClaimSummaryTypeFromString ¶
func GetIPClaimSummaryTypeFromString(s string) IPClaimSummaryType
type IPClaimType ¶
type IPClaimType string
const ( IPClaimType_Invalid IPClaimType = "invalid" IPClaimType_StaticAddress IPClaimType = "staticAddress" IPClaimType_StaticPrefix IPClaimType = "staticPrefix" IPClaimType_StaticRange IPClaimType = "staticRange" IPClaimType_DynamicAddress IPClaimType = "dynamicAddress" IPClaimType_DynamicPrefix IPClaimType = "dynamicPrefix" )
func GetIPClaimTypeFromString ¶
func GetIPClaimTypeFromString(s string) IPClaimType
type IPEntry ¶
type IPEntry struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Spec IPEntrySpec `json:"spec,omitempty" yaml:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` Status IPEntryStatus `json:"status,omitempty" yaml:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:categories={kuid} IPEntry is the Schema for the ipentry API
func (*IPEntry) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPEntry.
func (*IPEntry) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPEntry) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (IPEntry) GetGroupVersionResource ¶
func (IPEntry) GetGroupVersionResource() schema.GroupVersionResource
func (*IPEntry) GetObjectMeta ¶
func (r *IPEntry) GetObjectMeta() *metav1.ObjectMeta
GetObjectMeta implements resource.Object GetObjectMeta implements resource.Object
func (IPEntry) IsStorageVersion ¶
IsStorageVersion returns true -- Config is used as the internal version. IsStorageVersion implements resource.Object
func (IPEntry) NamespaceScoped ¶
NamespaceScoped returns true to indicate Fortune is a namespaced resource. NamespaceScoped implements resource.Object
type IPEntryList ¶
type IPEntryList struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ListMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Items []IPEntry `json:"items" yaml:"items" protobuf:"bytes,2,rep,name=items"` }
IPEntryList contains a list of IPEntries +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*IPEntryList) DeepCopy ¶
func (in *IPEntryList) DeepCopy() *IPEntryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPEntryList.
func (*IPEntryList) DeepCopyInto ¶
func (in *IPEntryList) DeepCopyInto(out *IPEntryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPEntryList) DeepCopyObject ¶
func (in *IPEntryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*IPEntryList) GetListMeta ¶
func (r *IPEntryList) GetListMeta() *metav1.ListMeta
GetListMeta returns the ListMeta GetListMeta implements resource.ObjectList
type IPEntrySpec ¶
type IPEntrySpec struct { // Index defines the index for the IP Entry Index string `json:"index" yaml:"index" protobuf:"bytes,1,opt,name=index"` // IndexEntry identifies if the entry is originated from an IP Index IndexEntry bool `json:"indexEntry" yaml:"indexEntry" protobuf:"bytes,2,opt,name=indexEntry"` // PrefixType defines the prefixtype of IPEntry; for address and range claims this is not relevant // - network kind is used for physical, virtual nics on a device // - pool kind is used for allocating dedicated IP addresses // - aggregate kind is used for claiming an aggregate prefix; only used for networkInstance prefixes // +kubebuilder:validation:Enum=`network`;`aggregate`;`pool`; // +optional PrefixType *IPPrefixType `json:"prefixType,omitempty" yaml:"prefixType,omitempty" protobuf:"bytes,3,opt,name=prefixType"` // ClaimType defines the claimType of the IP Entry // +kubebuilder:validation:Enum=`staticAddress`;`staticPrefix`;`staticRange`;`dynamicPrefix`;`dynamicAddress`; ClaimType IPClaimType `json:"claimType,omitempty" yaml:"claimType,omitempty" protobuf:"bytes,4,opt,name=claimType"` // Prefix defines the prefix for the IP entry; which can be an expanded prefix from the prefix, range or address Prefix string `json:"prefix" yaml:"prefix" protobuf:"bytes,5,opt,name=prefix"` // DefaultGateway defines if the address acts as a default gateway // +optional DefaultGateway *bool `json:"defaultGateway,omitempty" yaml:"defaultGateway,omitempty" protobuf:"varint,6,opt,name=defaultGateway"` // AddressFamily defines the address family for the IP claim // +kubebuilder:validation:Enum=`ipv4`;`ipv6` // +kubebuilder:validation:Optional // +optional AddressFamily *iputil.AddressFamily `json:"addressFamily,omitempty" yaml:"addressFamily,omitempty" protobuf:"bytes,7,opt,name=addressFamily"` // UserDefinedLabels define the user defined labels commonv1alpha1.UserDefinedLabels `json:",inline" yaml:",inline" protobuf:"bytes,8,opt,name=userDefinedLabels"` }
IPEntrySpec defines the desired state of IPEntry
func (*IPEntrySpec) DeepCopy ¶
func (in *IPEntrySpec) DeepCopy() *IPEntrySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPEntrySpec.
func (*IPEntrySpec) DeepCopyInto ¶
func (in *IPEntrySpec) DeepCopyInto(out *IPEntrySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPEntryStatus ¶
type IPEntryStatus struct { // ConditionedStatus provides the status of the IPClain using conditions // - a ready condition indicates the overall status of the resource condv1alpha1.ConditionedStatus `json:",inline" yaml:",inline" protobuf:"bytes,1,opt,name=conditionedStatus"` }
IPEntryStatus defines the observed state of IPEntry
func (*IPEntryStatus) DeepCopy ¶
func (in *IPEntryStatus) DeepCopy() *IPEntryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPEntryStatus.
func (*IPEntryStatus) DeepCopyInto ¶
func (in *IPEntryStatus) DeepCopyInto(out *IPEntryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPIndex ¶
type IPIndex struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Spec IPIndexSpec `json:"spec,omitempty" yaml:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` Status IPIndexStatus `json:"status,omitempty" yaml:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:categories={kuid} IPIndex is the Schema for the IPIndex API
func (*IPIndex) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPIndex.
func (*IPIndex) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPIndex) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*IPIndex) GetCondition ¶
func (r *IPIndex) GetCondition(t condv1alpha1.ConditionType) condv1alpha1.Condition
GetCondition returns the condition based on the condition kind
func (IPIndex) GetGroupVersionResource ¶
func (IPIndex) GetGroupVersionResource() schema.GroupVersionResource
func (*IPIndex) GetNamespacedName ¶
func (r *IPIndex) GetNamespacedName() types.NamespacedName
func (*IPIndex) GetObjectMeta ¶
func (r *IPIndex) GetObjectMeta() *metav1.ObjectMeta
GetObjectMeta implements resource.Object GetObjectMeta implements resource.Object
func (IPIndex) IsStorageVersion ¶
IsStorageVersion returns true -- Config is used as the internal version. IsStorageVersion implements resource.Object
func (IPIndex) NamespaceScoped ¶
NamespaceScoped returns true to indicate Fortune is a namespaced resource. NamespaceScoped implements resource.Object
func (IPIndex) RegisterConversions ¶ added in v0.0.8
RegisterConversions registers the conversions. RegisterConversions implements resource.MultiVersionObject
func (*IPIndex) SetConditions ¶
func (r *IPIndex) SetConditions(c ...condv1alpha1.Condition)
SetConditions sets the conditions on the resource. it allows for 0, 1 or more conditions to be set at once
type IPIndexList ¶
type IPIndexList struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ListMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Items []IPIndex `json:"items" yaml:"items" protobuf:"bytes,2,rep,name=items"` }
IPIndexList contains a list of IPIndexs +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*IPIndexList) DeepCopy ¶
func (in *IPIndexList) DeepCopy() *IPIndexList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPIndexList.
func (*IPIndexList) DeepCopyInto ¶
func (in *IPIndexList) DeepCopyInto(out *IPIndexList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPIndexList) DeepCopyObject ¶
func (in *IPIndexList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*IPIndexList) GetListMeta ¶
func (r *IPIndexList) GetListMeta() *metav1.ListMeta
GetListMeta returns the ListMeta GetListMeta implements resource.ObjectList
type IPIndexSpec ¶
type IPIndexSpec struct { // Prefixes define the aggregate prefixes for the network instance // A Network instance needs at least 1 prefix to be defined to become operational Prefixes []Prefix `json:"prefixes" yaml:"prefixes" protobuf:"bytes,1,opt,name=prefixes"` }
IPIndexSpec defines the desired state of IPIndex
func (*IPIndexSpec) DeepCopy ¶
func (in *IPIndexSpec) DeepCopy() *IPIndexSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPIndexSpec.
func (*IPIndexSpec) DeepCopyInto ¶
func (in *IPIndexSpec) DeepCopyInto(out *IPIndexSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPIndexStatus ¶
type IPIndexStatus struct { // ConditionedStatus provides the status of the IPClain using conditions // - a ready condition indicates the overall status of the resource condv1alpha1.ConditionedStatus `json:",inline" yaml:",inline" protobuf:"bytes,1,opt,name=conditionedStatus"` // Prefixes defines the prefixes, claimed through the IPAM backend Prefixes []Prefix `json:"prefixes,omitempty" yaml:"prefixes,omitempty" protobuf:"bytes,2,rep,name=prefixes"` }
IPIndexStatus defines the observed state of IPIndex
func (*IPIndexStatus) DeepCopy ¶
func (in *IPIndexStatus) DeepCopy() *IPIndexStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPIndexStatus.
func (*IPIndexStatus) DeepCopyInto ¶
func (in *IPIndexStatus) DeepCopyInto(out *IPIndexStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPPrefixType ¶
type IPPrefixType string
const ( IPPrefixType_Invalid IPPrefixType = "invalid" IPPrefixType_Other IPPrefixType = "other" IPPrefixType_Pool IPPrefixType = "pool" IPPrefixType_Network IPPrefixType = "network" IPPrefixType_Aggregate IPPrefixType = "aggregate" )
func GetIPPrefixTypeFromString ¶
func GetIPPrefixTypeFromString(s string) *IPPrefixType
type Prefix ¶
type Prefix struct { // Prefix defines the ip cidr in prefix notation. // +kubebuilder:validation:Pattern=`(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))|((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))` Prefix string `json:"prefix" yaml:"prefix" protobuf:"bytes,1,opt,name=prefix"` // PrefixType defines the prefixtype of IPIndex; // - network kind is used for physical, virtual nics on a device // - pool kind is used for allocating dedicated IP addresses // - aggregate kind is used for claiming an aggregate prefix; only used for networkInstance prefixes // +kubebuilder:validation:Enum=network;aggregate;pool; // +kubebuilder:default:=aggregate // +optional PrefixType *IPPrefixType `json:"prefixType,omitempty" yaml:"prefixType,omitempty" protobuf:"bytes,2,opt,name=prefixType"` // UserDefinedLabels define metadata to the resource. // defined in the spec to distingiush metadata labels from user defined labels commonv1alpha1.UserDefinedLabels `json:",inline" yaml:",inline" protobuf:"bytes,2,opt,name=userDefinedLabels"` }
func (*Prefix) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Prefix.
func (*Prefix) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.