v1alpha1

package
v1.26.0-kw1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterCIDR

type ClusterCIDR struct {

	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind string `json:"kind,omitempty"`

	// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata *apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"`

	// 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
	Spec *ClusterCIDRSpec `json:"spec,omitempty"`
}

ClusterCIDR 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.

swagger:model ClusterCIDR

func (ClusterCIDR) MarshalEasyJSON

func (v ClusterCIDR) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClusterCIDR) MarshalJSON

func (v ClusterCIDR) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ClusterCIDR) UnmarshalEasyJSON

func (v *ClusterCIDR) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClusterCIDR) UnmarshalJSON

func (v *ClusterCIDR) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ClusterCIDRList

type ClusterCIDRList struct {

	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	APIVersion string `json:"apiVersion,omitempty"`

	// Items is the list of ClusterCIDRs.
	// Required: true
	Items []*ClusterCIDR `json:"items"`

	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind string `json:"kind,omitempty"`

	// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata *apimachinery_pkg_apis_meta_v1.ListMeta `json:"metadata,omitempty"`
}

ClusterCIDRList ClusterCIDRList contains a list of ClusterCIDR.

swagger:model ClusterCIDRList

func (ClusterCIDRList) MarshalEasyJSON

func (v ClusterCIDRList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClusterCIDRList) MarshalJSON

func (v ClusterCIDRList) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ClusterCIDRList) UnmarshalEasyJSON

func (v *ClusterCIDRList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClusterCIDRList) UnmarshalJSON

func (v *ClusterCIDRList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ClusterCIDRSpec

type ClusterCIDRSpec struct {

	// 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.
	IPV4 string `json:"ipv4,omitempty"`

	// 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.
	IPV6 string `json:"ipv6,omitempty"`

	// NodeSelector defines which nodes the config is applicable to. An empty or nil NodeSelector selects all nodes. This field is immutable.
	NodeSelector *api_core_v1.NodeSelector `json:"nodeSelector,omitempty"`

	// 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: true
	PerNodeHostBits *int32 `json:"perNodeHostBits"`
}

ClusterCIDRSpec ClusterCIDRSpec defines the desired state of ClusterCIDR.

swagger:model ClusterCIDRSpec

func (ClusterCIDRSpec) MarshalEasyJSON

func (v ClusterCIDRSpec) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClusterCIDRSpec) MarshalJSON

func (v ClusterCIDRSpec) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ClusterCIDRSpec) UnmarshalEasyJSON

func (v *ClusterCIDRSpec) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClusterCIDRSpec) UnmarshalJSON

func (v *ClusterCIDRSpec) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL