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>>,
}
Available on crate feature
config
only.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<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
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.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Converts
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>
Converts
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