Struct k8s_openapi::api::networking::v1alpha1::ClusterCIDRSpec
source · [−]pub struct ClusterCIDRSpec {
pub ipv4: Option<String>,
pub ipv6: Option<String>,
pub node_selector: Option<NodeSelector>,
pub per_node_host_bits: i32,
}
Expand description
ClusterCIDRSpec defines the desired state of ClusterCIDR.
Fields
ipv4: Option<String>
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.
ipv6: Option<String>
IPv6 defines an IPv6 IP block in CIDR notation(e.g. “fd12:3456:789a:1::/64”). At least one of IPv4 and IPv6 must be specified. This field is immutable.
node_selector: Option<NodeSelector>
NodeSelector defines which nodes the config is applicable to. An empty or nil NodeSelector selects all nodes. This field is immutable.
per_node_host_bits: i32
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.
Trait Implementations
sourceimpl Clone for ClusterCIDRSpec
impl Clone for ClusterCIDRSpec
sourcefn clone(&self) -> ClusterCIDRSpec
fn clone(&self) -> ClusterCIDRSpec
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ClusterCIDRSpec
impl Debug for ClusterCIDRSpec
sourceimpl DeepMerge for ClusterCIDRSpec
impl DeepMerge for ClusterCIDRSpec
sourcefn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge other
into self
.
sourceimpl Default for ClusterCIDRSpec
impl Default for ClusterCIDRSpec
sourcefn default() -> ClusterCIDRSpec
fn default() -> ClusterCIDRSpec
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ClusterCIDRSpec
impl<'de> Deserialize<'de> for ClusterCIDRSpec
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ClusterCIDRSpec> for ClusterCIDRSpec
impl PartialEq<ClusterCIDRSpec> for ClusterCIDRSpec
sourcefn eq(&self, other: &ClusterCIDRSpec) -> bool
fn eq(&self, other: &ClusterCIDRSpec) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for ClusterCIDRSpec
impl Serialize for ClusterCIDRSpec
impl StructuralPartialEq for ClusterCIDRSpec
Auto Trait Implementations
impl RefUnwindSafe for ClusterCIDRSpec
impl Send for ClusterCIDRSpec
impl Sync for ClusterCIDRSpec
impl Unpin for ClusterCIDRSpec
impl UnwindSafe for ClusterCIDRSpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more