const ( // ServiceCIDRConditionReady represents status of a ServiceCIDR that is ready to be used by the // apiserver to allocate ClusterIPs for Services. ServiceCIDRConditionReady = "Ready" // ServiceCIDRReasonTerminating represents a reason where a ServiceCIDR is not ready because it is // being deleted. ServiceCIDRReasonTerminating = "Terminating" )
const ( // TODO: Use IPFamily as field with a field selector,And the value is set based on // the name at create time and immutable. // LabelIPAddressFamily is used to indicate the IP family of a Kubernetes IPAddress. // This label simplify dual-stack client operations allowing to obtain the list of // IP addresses filtered by family. LabelIPAddressFamily = "ipaddress.kubernetes.io/ip-family" // LabelManagedBy is used to indicate the controller or entity that manages // an IPAddress. This label aims to enable different IPAddress // objects to be managed by different controllers or entities within the // same cluster. It is highly recommended to configure this label for all // IPAddress objects. LabelManagedBy = "ipaddress.kubernetes.io/managed-by" )
GroupName is the group name used in this package.
const GroupName = "networking.k8s.io"
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") )
var ( // SchemeBuilder holds functions that add things to a scheme. // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme adds the types of this group into the given scheme. AddToScheme = localSchemeBuilder.AddToScheme )
SchemeGroupVersion is group version used to register objects in this package.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
func Kind(kind string) schema.GroupKind
Kind takes an unqualified kind and returns a Group qualified GroupKind.
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1
type IPAddress struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // spec is the desired state of the IPAddress. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec IPAddressSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` }
func (in *IPAddress) APILifecycleDeprecated() (major, minor int)
APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
func (in *IPAddress) APILifecycleIntroduced() (major, minor int)
APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
func (in *IPAddress) APILifecycleRemoved() (major, minor int)
APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
func (in *IPAddress) DeepCopy() *IPAddress
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddress.
func (in *IPAddress) DeepCopyInto(out *IPAddress)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *IPAddress) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*IPAddress) Descriptor() ([]byte, []int)
func (m *IPAddress) Marshal() (dAtA []byte, err error)
func (m *IPAddress) MarshalTo(dAtA []byte) (int, error)
func (m *IPAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IPAddress) ProtoMessage()
func (m *IPAddress) Reset()
func (m *IPAddress) Size() (n int)
func (this *IPAddress) String() string
func (IPAddress) SwaggerDoc() map[string]string
func (m *IPAddress) Unmarshal(dAtA []byte) error
func (m *IPAddress) XXX_DiscardUnknown()
func (m *IPAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *IPAddress) XXX_Merge(src proto.Message)
func (m *IPAddress) XXX_Size() int
func (m *IPAddress) XXX_Unmarshal(b []byte) error
IPAddressList contains a list of IPAddress.
type IPAddressList struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // items is the list of IPAddresses. Items []IPAddress `json:"items" protobuf:"bytes,2,rep,name=items"` }
func (in *IPAddressList) APILifecycleDeprecated() (major, minor int)
APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
func (in *IPAddressList) APILifecycleIntroduced() (major, minor int)
APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
func (in *IPAddressList) APILifecycleRemoved() (major, minor int)
APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
func (in *IPAddressList) DeepCopy() *IPAddressList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddressList.
func (in *IPAddressList) DeepCopyInto(out *IPAddressList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *IPAddressList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*IPAddressList) Descriptor() ([]byte, []int)
func (m *IPAddressList) Marshal() (dAtA []byte, err error)
func (m *IPAddressList) MarshalTo(dAtA []byte) (int, error)
func (m *IPAddressList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IPAddressList) ProtoMessage()
func (m *IPAddressList) Reset()
func (m *IPAddressList) Size() (n int)
func (this *IPAddressList) String() string
func (IPAddressList) SwaggerDoc() map[string]string
func (m *IPAddressList) Unmarshal(dAtA []byte) error
func (m *IPAddressList) XXX_DiscardUnknown()
func (m *IPAddressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *IPAddressList) XXX_Merge(src proto.Message)
func (m *IPAddressList) XXX_Size() int
func (m *IPAddressList) XXX_Unmarshal(b []byte) error
IPAddressSpec describe the attributes in an IP Address.
type IPAddressSpec struct { // ParentRef references the resource that an IPAddress is attached to. // An IPAddress must reference a parent object. // +required ParentRef *ParentReference `json:"parentRef,omitempty" protobuf:"bytes,1,opt,name=parentRef"` }
func (in *IPAddressSpec) DeepCopy() *IPAddressSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddressSpec.
func (in *IPAddressSpec) DeepCopyInto(out *IPAddressSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPAddressSpec) Descriptor() ([]byte, []int)
func (m *IPAddressSpec) Marshal() (dAtA []byte, err error)
func (m *IPAddressSpec) MarshalTo(dAtA []byte) (int, error)
func (m *IPAddressSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IPAddressSpec) ProtoMessage()
func (m *IPAddressSpec) Reset()
func (m *IPAddressSpec) Size() (n int)
func (this *IPAddressSpec) String() string
func (IPAddressSpec) SwaggerDoc() map[string]string
func (m *IPAddressSpec) Unmarshal(dAtA []byte) error
func (m *IPAddressSpec) XXX_DiscardUnknown()
func (m *IPAddressSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *IPAddressSpec) XXX_Merge(src proto.Message)
func (m *IPAddressSpec) XXX_Size() int
func (m *IPAddressSpec) XXX_Unmarshal(b []byte) error
ParentReference describes a reference to a parent object.
type ParentReference struct { // Group is the group of the object being referenced. // +optional Group string `json:"group,omitempty" protobuf:"bytes,1,opt,name=group"` // Resource is the resource of the object being referenced. // +required Resource string `json:"resource,omitempty" protobuf:"bytes,2,opt,name=resource"` // Namespace is the namespace of the object being referenced. // +optional Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"` // Name is the name of the object being referenced. // +required Name string `json:"name,omitempty" protobuf:"bytes,4,opt,name=name"` }
func (in *ParentReference) DeepCopy() *ParentReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParentReference.
func (in *ParentReference) DeepCopyInto(out *ParentReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ParentReference) Descriptor() ([]byte, []int)
func (m *ParentReference) Marshal() (dAtA []byte, err error)
func (m *ParentReference) MarshalTo(dAtA []byte) (int, error)
func (m *ParentReference) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ParentReference) ProtoMessage()
func (m *ParentReference) Reset()
func (m *ParentReference) Size() (n int)
func (this *ParentReference) String() string
func (ParentReference) SwaggerDoc() map[string]string
func (m *ParentReference) Unmarshal(dAtA []byte) error
func (m *ParentReference) XXX_DiscardUnknown()
func (m *ParentReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *ParentReference) XXX_Merge(src proto.Message)
func (m *ParentReference) XXX_Size() int
func (m *ParentReference) XXX_Unmarshal(b []byte) error
ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.
type ServiceCIDR struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // spec is the desired state of the ServiceCIDR. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec ServiceCIDRSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // status represents the current state of the ServiceCIDR. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Status ServiceCIDRStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
func (in *ServiceCIDR) APILifecycleDeprecated() (major, minor int)
APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
func (in *ServiceCIDR) APILifecycleIntroduced() (major, minor int)
APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
func (in *ServiceCIDR) APILifecycleRemoved() (major, minor int)
APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
func (in *ServiceCIDR) DeepCopy() *ServiceCIDR
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCIDR.
func (in *ServiceCIDR) DeepCopyInto(out *ServiceCIDR)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ServiceCIDR) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ServiceCIDR) Descriptor() ([]byte, []int)
func (m *ServiceCIDR) Marshal() (dAtA []byte, err error)
func (m *ServiceCIDR) MarshalTo(dAtA []byte) (int, error)
func (m *ServiceCIDR) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ServiceCIDR) ProtoMessage()
func (m *ServiceCIDR) Reset()
func (m *ServiceCIDR) Size() (n int)
func (this *ServiceCIDR) String() string
func (ServiceCIDR) SwaggerDoc() map[string]string
func (m *ServiceCIDR) Unmarshal(dAtA []byte) error
func (m *ServiceCIDR) XXX_DiscardUnknown()
func (m *ServiceCIDR) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *ServiceCIDR) XXX_Merge(src proto.Message)
func (m *ServiceCIDR) XXX_Size() int
func (m *ServiceCIDR) XXX_Unmarshal(b []byte) error
ServiceCIDRList contains a list of ServiceCIDR objects.
type ServiceCIDRList struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // items is the list of ServiceCIDRs. Items []ServiceCIDR `json:"items" protobuf:"bytes,2,rep,name=items"` }
func (in *ServiceCIDRList) APILifecycleDeprecated() (major, minor int)
APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
func (in *ServiceCIDRList) APILifecycleIntroduced() (major, minor int)
APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
func (in *ServiceCIDRList) APILifecycleRemoved() (major, minor int)
APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
func (in *ServiceCIDRList) DeepCopy() *ServiceCIDRList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCIDRList.
func (in *ServiceCIDRList) DeepCopyInto(out *ServiceCIDRList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ServiceCIDRList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ServiceCIDRList) Descriptor() ([]byte, []int)
func (m *ServiceCIDRList) Marshal() (dAtA []byte, err error)
func (m *ServiceCIDRList) MarshalTo(dAtA []byte) (int, error)
func (m *ServiceCIDRList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ServiceCIDRList) ProtoMessage()
func (m *ServiceCIDRList) Reset()
func (m *ServiceCIDRList) Size() (n int)
func (this *ServiceCIDRList) String() string
func (ServiceCIDRList) SwaggerDoc() map[string]string
func (m *ServiceCIDRList) Unmarshal(dAtA []byte) error
func (m *ServiceCIDRList) XXX_DiscardUnknown()
func (m *ServiceCIDRList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *ServiceCIDRList) XXX_Merge(src proto.Message)
func (m *ServiceCIDRList) XXX_Size() int
func (m *ServiceCIDRList) XXX_Unmarshal(b []byte) error
ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.
type ServiceCIDRSpec struct { // CIDRs defines the IP blocks in CIDR notation (e.g. "192.168.0.0/24" or "2001:db8::/64") // from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. // This field is immutable. // +optional // +listType=atomic CIDRs []string `json:"cidrs,omitempty" protobuf:"bytes,1,opt,name=cidrs"` }
func (in *ServiceCIDRSpec) DeepCopy() *ServiceCIDRSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCIDRSpec.
func (in *ServiceCIDRSpec) DeepCopyInto(out *ServiceCIDRSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceCIDRSpec) Descriptor() ([]byte, []int)
func (m *ServiceCIDRSpec) Marshal() (dAtA []byte, err error)
func (m *ServiceCIDRSpec) MarshalTo(dAtA []byte) (int, error)
func (m *ServiceCIDRSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ServiceCIDRSpec) ProtoMessage()
func (m *ServiceCIDRSpec) Reset()
func (m *ServiceCIDRSpec) Size() (n int)
func (this *ServiceCIDRSpec) String() string
func (ServiceCIDRSpec) SwaggerDoc() map[string]string
func (m *ServiceCIDRSpec) Unmarshal(dAtA []byte) error
func (m *ServiceCIDRSpec) XXX_DiscardUnknown()
func (m *ServiceCIDRSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *ServiceCIDRSpec) XXX_Merge(src proto.Message)
func (m *ServiceCIDRSpec) XXX_Size() int
func (m *ServiceCIDRSpec) XXX_Unmarshal(b []byte) error
ServiceCIDRStatus describes the current state of the ServiceCIDR.
type ServiceCIDRStatus struct { // conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. // Current service state // +optional // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` }
func (in *ServiceCIDRStatus) DeepCopy() *ServiceCIDRStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCIDRStatus.
func (in *ServiceCIDRStatus) DeepCopyInto(out *ServiceCIDRStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceCIDRStatus) Descriptor() ([]byte, []int)
func (m *ServiceCIDRStatus) Marshal() (dAtA []byte, err error)
func (m *ServiceCIDRStatus) MarshalTo(dAtA []byte) (int, error)
func (m *ServiceCIDRStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ServiceCIDRStatus) ProtoMessage()
func (m *ServiceCIDRStatus) Reset()
func (m *ServiceCIDRStatus) Size() (n int)
func (this *ServiceCIDRStatus) String() string
func (ServiceCIDRStatus) SwaggerDoc() map[string]string
func (m *ServiceCIDRStatus) Unmarshal(dAtA []byte) error
func (m *ServiceCIDRStatus) XXX_DiscardUnknown()
func (m *ServiceCIDRStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *ServiceCIDRStatus) XXX_Merge(src proto.Message)
func (m *ServiceCIDRStatus) XXX_Size() int
func (m *ServiceCIDRStatus) XXX_Unmarshal(b []byte) error