pub struct Cluster {
pub server: Option<String>,
pub insecure_skip_tls_verify: Option<bool>,
pub certificate_authority: Option<String>,
pub certificate_authority_data: Option<String>,
pub proxy_url: Option<String>,
pub tls_server_name: Option<String>,
pub extensions: Option<Vec<NamedExtension>>,
}
Expand description
Cluster stores information to connect Kubernetes cluster.
Fields§
§server: Option<String>
The address of the kubernetes cluster (https://hostname:port).
insecure_skip_tls_verify: Option<bool>
Skips the validity check for the server’s certificate. This will make your HTTPS connections insecure.
The path to a cert file for the certificate authority.
PEM-encoded certificate authority certificates. Overrides certificate_authority
proxy_url: Option<String>
URL to the proxy to be used for all requests.
tls_server_name: Option<String>
Name used to check server certificate.
If tls_server_name
is None
, the hostname used to contact the server is used.
extensions: Option<Vec<NamedExtension>>
Additional information for extenders so that reads and writes don’t clobber unknown fields
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cluster
impl<'de> Deserialize<'de> for Cluster
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Cluster, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Cluster, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Cluster
impl Serialize for Cluster
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&Cluster> for ExecAuthCluster
impl TryFrom<&Cluster> for ExecAuthCluster
Source§type Error = KubeconfigError
type Error = KubeconfigError
The type returned in the event of a conversion error.
Source§fn try_from(cluster: &Cluster) -> Result<ExecAuthCluster, KubeconfigError>
fn try_from(cluster: &Cluster) -> Result<ExecAuthCluster, KubeconfigError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for Cluster
impl RefUnwindSafe for Cluster
impl Send for Cluster
impl Sync for Cluster
impl Unpin for Cluster
impl UnwindSafe for Cluster
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more