Documentation ¶
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type ClusterCIDR
- func (in *ClusterCIDR) APILifecycleDeprecated() (major, minor int)
- func (in *ClusterCIDR) APILifecycleIntroduced() (major, minor int)
- func (in *ClusterCIDR) APILifecycleRemoved() (major, minor int)
- func (in *ClusterCIDR) DeepCopy() *ClusterCIDR
- func (in *ClusterCIDR) DeepCopyInto(out *ClusterCIDR)
- func (in *ClusterCIDR) DeepCopyObject() runtime.Object
- func (*ClusterCIDR) Descriptor() ([]byte, []int)
- func (m *ClusterCIDR) Marshal() (dAtA []byte, err error)
- func (m *ClusterCIDR) MarshalTo(dAtA []byte) (int, error)
- func (m *ClusterCIDR) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClusterCIDR) ProtoMessage()
- func (m *ClusterCIDR) Reset()
- func (m *ClusterCIDR) Size() (n int)
- func (this *ClusterCIDR) String() string
- func (ClusterCIDR) SwaggerDoc() map[string]string
- func (m *ClusterCIDR) Unmarshal(dAtA []byte) error
- func (m *ClusterCIDR) XXX_DiscardUnknown()
- func (m *ClusterCIDR) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClusterCIDR) XXX_Merge(src proto.Message)
- func (m *ClusterCIDR) XXX_Size() int
- func (m *ClusterCIDR) XXX_Unmarshal(b []byte) error
- type ClusterCIDRList
- func (in *ClusterCIDRList) APILifecycleDeprecated() (major, minor int)
- func (in *ClusterCIDRList) APILifecycleIntroduced() (major, minor int)
- func (in *ClusterCIDRList) APILifecycleRemoved() (major, minor int)
- func (in *ClusterCIDRList) DeepCopy() *ClusterCIDRList
- func (in *ClusterCIDRList) DeepCopyInto(out *ClusterCIDRList)
- func (in *ClusterCIDRList) DeepCopyObject() runtime.Object
- func (*ClusterCIDRList) Descriptor() ([]byte, []int)
- func (m *ClusterCIDRList) Marshal() (dAtA []byte, err error)
- func (m *ClusterCIDRList) MarshalTo(dAtA []byte) (int, error)
- func (m *ClusterCIDRList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClusterCIDRList) ProtoMessage()
- func (m *ClusterCIDRList) Reset()
- func (m *ClusterCIDRList) Size() (n int)
- func (this *ClusterCIDRList) String() string
- func (ClusterCIDRList) SwaggerDoc() map[string]string
- func (m *ClusterCIDRList) Unmarshal(dAtA []byte) error
- func (m *ClusterCIDRList) XXX_DiscardUnknown()
- func (m *ClusterCIDRList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClusterCIDRList) XXX_Merge(src proto.Message)
- func (m *ClusterCIDRList) XXX_Size() int
- func (m *ClusterCIDRList) XXX_Unmarshal(b []byte) error
- type ClusterCIDRSpec
- func (in *ClusterCIDRSpec) DeepCopy() *ClusterCIDRSpec
- func (in *ClusterCIDRSpec) DeepCopyInto(out *ClusterCIDRSpec)
- func (*ClusterCIDRSpec) Descriptor() ([]byte, []int)
- func (m *ClusterCIDRSpec) Marshal() (dAtA []byte, err error)
- func (m *ClusterCIDRSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *ClusterCIDRSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClusterCIDRSpec) ProtoMessage()
- func (m *ClusterCIDRSpec) Reset()
- func (m *ClusterCIDRSpec) Size() (n int)
- func (this *ClusterCIDRSpec) String() string
- func (ClusterCIDRSpec) SwaggerDoc() map[string]string
- func (m *ClusterCIDRSpec) Unmarshal(dAtA []byte) error
- func (m *ClusterCIDRSpec) XXX_DiscardUnknown()
- func (m *ClusterCIDRSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClusterCIDRSpec) XXX_Merge(src proto.Message)
- func (m *ClusterCIDRSpec) XXX_Size() int
- func (m *ClusterCIDRSpec) XXX_Unmarshal(b []byte) error
Constants ¶
const GroupName = "networking.k8s.io"
GroupName is the group name use in this package.
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
Types ¶
type ClusterCIDR ¶
type ClusterCIDR 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 ClusterCIDR. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec ClusterCIDRSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` }
ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used.
func (*ClusterCIDR) APILifecycleDeprecated ¶
func (in *ClusterCIDR) 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 (*ClusterCIDR) APILifecycleIntroduced ¶
func (in *ClusterCIDR) 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 (*ClusterCIDR) APILifecycleRemoved ¶
func (in *ClusterCIDR) 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 (*ClusterCIDR) DeepCopy ¶
func (in *ClusterCIDR) DeepCopy() *ClusterCIDR
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCIDR.
func (*ClusterCIDR) DeepCopyInto ¶
func (in *ClusterCIDR) DeepCopyInto(out *ClusterCIDR)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterCIDR) DeepCopyObject ¶
func (in *ClusterCIDR) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterCIDR) Descriptor ¶
func (*ClusterCIDR) Descriptor() ([]byte, []int)
func (*ClusterCIDR) Marshal ¶
func (m *ClusterCIDR) Marshal() (dAtA []byte, err error)
func (*ClusterCIDR) MarshalToSizedBuffer ¶
func (m *ClusterCIDR) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClusterCIDR) ProtoMessage ¶
func (*ClusterCIDR) ProtoMessage()
func (*ClusterCIDR) Reset ¶
func (m *ClusterCIDR) Reset()
func (*ClusterCIDR) Size ¶
func (m *ClusterCIDR) Size() (n int)
func (*ClusterCIDR) String ¶
func (this *ClusterCIDR) String() string
func (ClusterCIDR) SwaggerDoc ¶
func (ClusterCIDR) SwaggerDoc() map[string]string
func (*ClusterCIDR) Unmarshal ¶
func (m *ClusterCIDR) Unmarshal(dAtA []byte) error
func (*ClusterCIDR) XXX_DiscardUnknown ¶
func (m *ClusterCIDR) XXX_DiscardUnknown()
func (*ClusterCIDR) XXX_Marshal ¶
func (m *ClusterCIDR) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClusterCIDR) XXX_Merge ¶
func (m *ClusterCIDR) XXX_Merge(src proto.Message)
func (*ClusterCIDR) XXX_Size ¶
func (m *ClusterCIDR) XXX_Size() int
func (*ClusterCIDR) XXX_Unmarshal ¶
func (m *ClusterCIDR) XXX_Unmarshal(b []byte) error
type ClusterCIDRList ¶
type ClusterCIDRList 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 ClusterCIDRs. Items []ClusterCIDR `json:"items" protobuf:"bytes,2,rep,name=items"` }
ClusterCIDRList contains a list of ClusterCIDR.
func (*ClusterCIDRList) APILifecycleDeprecated ¶
func (in *ClusterCIDRList) 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 (*ClusterCIDRList) APILifecycleIntroduced ¶
func (in *ClusterCIDRList) 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 (*ClusterCIDRList) APILifecycleRemoved ¶
func (in *ClusterCIDRList) 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 (*ClusterCIDRList) DeepCopy ¶
func (in *ClusterCIDRList) DeepCopy() *ClusterCIDRList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCIDRList.
func (*ClusterCIDRList) DeepCopyInto ¶
func (in *ClusterCIDRList) DeepCopyInto(out *ClusterCIDRList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterCIDRList) DeepCopyObject ¶
func (in *ClusterCIDRList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterCIDRList) Descriptor ¶
func (*ClusterCIDRList) Descriptor() ([]byte, []int)
func (*ClusterCIDRList) Marshal ¶
func (m *ClusterCIDRList) Marshal() (dAtA []byte, err error)
func (*ClusterCIDRList) MarshalToSizedBuffer ¶
func (m *ClusterCIDRList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClusterCIDRList) ProtoMessage ¶
func (*ClusterCIDRList) ProtoMessage()
func (*ClusterCIDRList) Reset ¶
func (m *ClusterCIDRList) Reset()
func (*ClusterCIDRList) Size ¶
func (m *ClusterCIDRList) Size() (n int)
func (*ClusterCIDRList) String ¶
func (this *ClusterCIDRList) String() string
func (ClusterCIDRList) SwaggerDoc ¶
func (ClusterCIDRList) SwaggerDoc() map[string]string
func (*ClusterCIDRList) Unmarshal ¶
func (m *ClusterCIDRList) Unmarshal(dAtA []byte) error
func (*ClusterCIDRList) XXX_DiscardUnknown ¶
func (m *ClusterCIDRList) XXX_DiscardUnknown()
func (*ClusterCIDRList) XXX_Marshal ¶
func (m *ClusterCIDRList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClusterCIDRList) XXX_Merge ¶
func (m *ClusterCIDRList) XXX_Merge(src proto.Message)
func (*ClusterCIDRList) XXX_Size ¶
func (m *ClusterCIDRList) XXX_Size() int
func (*ClusterCIDRList) XXX_Unmarshal ¶
func (m *ClusterCIDRList) XXX_Unmarshal(b []byte) error
type ClusterCIDRSpec ¶
type ClusterCIDRSpec struct { // NodeSelector defines which nodes the config is applicable to. // An empty or nil NodeSelector selects all nodes. // This field is immutable. // +optional NodeSelector *v1.NodeSelector `json:"nodeSelector,omitempty" protobuf:"bytes,1,opt,name=nodeSelector"` // PerNodeHostBits defines the number of host bits to be configured per node. // A subnet mask determines how much of the address is used for network bits // and host bits. For example an IPv4 address of 192.168.0.0/24, splits the // address into 24 bits for the network portion and 8 bits for the host portion. // To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). // Minimum value is 4 (16 IPs). // This field is immutable. // +required PerNodeHostBits int32 `json:"perNodeHostBits" protobuf:"varint,2,opt,name=perNodeHostBits"` // IPv4 defines an IPv4 IP block in CIDR notation(e.g. "10.0.0.0/8"). // At least one of IPv4 and IPv6 must be specified. // This field is immutable. // +optional IPv4 string `json:"ipv4" protobuf:"bytes,3,opt,name=ipv4"` // IPv6 defines an IPv6 IP block in CIDR notation(e.g. "2001:db8::/64"). // At least one of IPv4 and IPv6 must be specified. // This field is immutable. // +optional IPv6 string `json:"ipv6" protobuf:"bytes,4,opt,name=ipv6"` }
ClusterCIDRSpec defines the desired state of ClusterCIDR.
func (*ClusterCIDRSpec) DeepCopy ¶
func (in *ClusterCIDRSpec) DeepCopy() *ClusterCIDRSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCIDRSpec.
func (*ClusterCIDRSpec) DeepCopyInto ¶
func (in *ClusterCIDRSpec) DeepCopyInto(out *ClusterCIDRSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterCIDRSpec) Descriptor ¶
func (*ClusterCIDRSpec) Descriptor() ([]byte, []int)
func (*ClusterCIDRSpec) Marshal ¶
func (m *ClusterCIDRSpec) Marshal() (dAtA []byte, err error)
func (*ClusterCIDRSpec) MarshalToSizedBuffer ¶
func (m *ClusterCIDRSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClusterCIDRSpec) ProtoMessage ¶
func (*ClusterCIDRSpec) ProtoMessage()
func (*ClusterCIDRSpec) Reset ¶
func (m *ClusterCIDRSpec) Reset()
func (*ClusterCIDRSpec) Size ¶
func (m *ClusterCIDRSpec) Size() (n int)
func (*ClusterCIDRSpec) String ¶
func (this *ClusterCIDRSpec) String() string
func (ClusterCIDRSpec) SwaggerDoc ¶
func (ClusterCIDRSpec) SwaggerDoc() map[string]string
func (*ClusterCIDRSpec) Unmarshal ¶
func (m *ClusterCIDRSpec) Unmarshal(dAtA []byte) error
func (*ClusterCIDRSpec) XXX_DiscardUnknown ¶
func (m *ClusterCIDRSpec) XXX_DiscardUnknown()
func (*ClusterCIDRSpec) XXX_Marshal ¶
func (m *ClusterCIDRSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClusterCIDRSpec) XXX_Merge ¶
func (m *ClusterCIDRSpec) XXX_Merge(src proto.Message)
func (*ClusterCIDRSpec) XXX_Size ¶
func (m *ClusterCIDRSpec) XXX_Size() int
func (*ClusterCIDRSpec) XXX_Unmarshal ¶
func (m *ClusterCIDRSpec) XXX_Unmarshal(b []byte) error