pub struct PodDnsConfig {
pub nameservers: Option<Vec<String>>,
pub options: Option<Vec<PodDnsConfigOption>>,
pub searches: Option<Vec<String>>,
}Expand description
PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.
Fields§
§nameservers: Option<Vec<String>>A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. +optional
options: Option<Vec<PodDnsConfigOption>>A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. +optional
searches: Option<Vec<String>>A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. +optional
Implementations§
Source§impl PodDnsConfig
impl PodDnsConfig
pub fn new() -> PodDnsConfig
Trait Implementations§
Source§impl Clone for PodDnsConfig
impl Clone for PodDnsConfig
Source§fn clone(&self) -> PodDnsConfig
fn clone(&self) -> PodDnsConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PodDnsConfig
impl Debug for PodDnsConfig
Source§impl<'de> Deserialize<'de> for PodDnsConfig
impl<'de> Deserialize<'de> for PodDnsConfig
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 FromStr for PodDnsConfig
Converts Query Parameters representation (style=form, explode=false) to a PodDnsConfig value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for PodDnsConfig
Converts Query Parameters representation (style=form, explode=false) to a PodDnsConfig value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for PodDnsConfig
impl PartialEq for PodDnsConfig
Source§impl Serialize for PodDnsConfig
impl Serialize for PodDnsConfig
Source§impl ToString for PodDnsConfig
Converts the PodDnsConfig value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for PodDnsConfig
Converts the PodDnsConfig value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer