Struct kube_client::config::ExecConfig
source · pub struct ExecConfig {
pub api_version: Option<String>,
pub command: Option<String>,
pub args: Option<Vec<String>>,
pub env: Option<Vec<HashMap<String, String>>>,
pub drop_env: Option<Vec<String>>,
pub interactive_mode: Option<ExecInteractiveMode>,
pub provide_cluster_info: bool,
pub cluster: Option<ExecAuthCluster>,
}
Expand description
ExecConfig stores credential-plugin configuration.
Fields§
§api_version: Option<String>
Preferred input version of the ExecInfo.
The returned ExecCredentials MUST use the same encoding version as the input.
command: Option<String>
Command to execute.
args: Option<Vec<String>>
Arguments to pass to the command when executing it.
env: Option<Vec<HashMap<String, String>>>
Env defines additional environment variables to expose to the process.
TODO: These are unioned with the host’s environment, as well as variables client-go uses to pass argument to the plugin.
drop_env: Option<Vec<String>>
Specifies which environment variables the host should avoid passing to the auth plugin.
This does currently not exist upstream and cannot be specified on disk. It has been suggested in client-go via https://github.com/kubernetes/client-go/issues/1177
interactive_mode: Option<ExecInteractiveMode>
Interative mode of the auth plugins
provide_cluster_info: bool
ProvideClusterInfo determines whether or not to provide cluster information, which could potentially contain very large CA data, to this exec plugin as a part of the KUBERNETES_EXEC_INFO environment variable. By default, it is set to false. Package k8s.io/client-go/tools/auth/exec provides helper methods for reading this environment variable.
cluster: Option<ExecAuthCluster>
Cluster information to pass to the plugin.
Should be used only when provide_cluster_info
is True.
Trait Implementations§
source§impl Clone for ExecConfig
impl Clone for ExecConfig
source§fn clone(&self) -> ExecConfig
fn clone(&self) -> ExecConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExecConfig
impl Debug for ExecConfig
source§impl<'de> Deserialize<'de> for ExecConfig
impl<'de> Deserialize<'de> for ExecConfig
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>,
Auto Trait Implementations§
impl Freeze for ExecConfig
impl RefUnwindSafe for ExecConfig
impl Send for ExecConfig
impl Sync for ExecConfig
impl Unpin for ExecConfig
impl UnwindSafe for ExecConfig
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)