Struct k8s_openapi::api::networking::v1alpha1::ClusterCIDR
source · pub struct ClusterCIDR {
pub metadata: ObjectMeta,
pub spec: Option<ClusterCIDRSpec>,
}
Expand description
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.
Fields§
§metadata: ObjectMeta
Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec: Option<ClusterCIDRSpec>
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
Trait Implementations§
source§impl Clone for ClusterCIDR
impl Clone for ClusterCIDR
source§fn clone(&self) -> ClusterCIDR
fn clone(&self) -> ClusterCIDR
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClusterCIDR
impl Debug for ClusterCIDR
source§impl DeepMerge for ClusterCIDR
impl DeepMerge for ClusterCIDR
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for ClusterCIDR
impl Default for ClusterCIDR
source§fn default() -> ClusterCIDR
fn default() -> ClusterCIDR
source§impl<'de> Deserialize<'de> for ClusterCIDR
impl<'de> Deserialize<'de> for ClusterCIDR
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
source§impl ListableResource for ClusterCIDR
impl ListableResource for ClusterCIDR
source§impl Metadata for ClusterCIDR
impl Metadata for ClusterCIDR
source§impl PartialEq<ClusterCIDR> for ClusterCIDR
impl PartialEq<ClusterCIDR> for ClusterCIDR
source§fn eq(&self, other: &ClusterCIDR) -> bool
fn eq(&self, other: &ClusterCIDR) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Resource for ClusterCIDR
impl Resource for ClusterCIDR
source§const API_VERSION: &'static str = "networking.k8s.io/v1alpha1"
const API_VERSION: &'static str = "networking.k8s.io/v1alpha1"
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read more