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 disable_compression: Option<bool>,
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.
disable_compression: Option<bool>Compression is enabled by default with the gzip feature.
disable_compression allows client to opt-out of response compression for all requests to the server.
This is useful to speed up requests (specifically lists) when client-server network bandwidth is ample,
by saving time on compression (server-side) and decompression (client-side):
https://github.com/kubernetes/kubernetes/issues/112296
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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl TryFrom<&Cluster> for ExecAuthCluster
impl TryFrom<&Cluster> for ExecAuthCluster
Source§type Error = KubeconfigError
type Error = KubeconfigError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more