pub enum KubernetesClientConfig {
InCluster {
namespace: Option<String>,
additional_headers: Option<HashMap<String, String>>,
},
Kubeconfig {
kubeconfig_path: Option<String>,
context: Option<String>,
cluster: Option<String>,
user: Option<String>,
namespace: Option<String>,
additional_headers: Option<HashMap<String, String>>,
},
Manual {
server_url: String,
certificate_authority_data: Option<String>,
insecure_skip_tls_verify: Option<bool>,
client_certificate_data: Option<String>,
client_key_data: Option<String>,
token: Option<String>,
username: Option<String>,
password: Option<String>,
namespace: Option<String>,
additional_headers: HashMap<String, String>,
},
}Expand description
Configuration mode for Kubernetes access
Variants§
InCluster
Use in-cluster configuration (service account tokens, etc.)
Fields
Kubeconfig
Use kubeconfig file for configuration
Fields
Manual
Manual configuration with explicit values
Fields
The cluster certificate authority data (base64 encoded)
Trait Implementations§
Source§impl Clone for KubernetesClientConfig
impl Clone for KubernetesClientConfig
Source§fn clone(&self) -> KubernetesClientConfig
fn clone(&self) -> KubernetesClientConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KubernetesClientConfig
impl Debug for KubernetesClientConfig
Source§impl<'de> Deserialize<'de> for KubernetesClientConfig
impl<'de> Deserialize<'de> for KubernetesClientConfig
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 PartialEq for KubernetesClientConfig
impl PartialEq for KubernetesClientConfig
Source§impl Serialize for KubernetesClientConfig
impl Serialize for KubernetesClientConfig
impl Eq for KubernetesClientConfig
impl StructuralPartialEq for KubernetesClientConfig
Auto Trait Implementations§
impl Freeze for KubernetesClientConfig
impl RefUnwindSafe for KubernetesClientConfig
impl Send for KubernetesClientConfig
impl Sync for KubernetesClientConfig
impl Unpin for KubernetesClientConfig
impl UnsafeUnpin for KubernetesClientConfig
impl UnwindSafe for KubernetesClientConfig
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.