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>,
}
config
only.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§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