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 install_hint: Option<String>,
pub interactive_mode: Option<ExecInteractiveMode>,
pub provide_cluster_info: bool,
pub cluster: Option<ExecAuthCluster>,
pub other: BTreeMap<String, Value>,
}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
install_hint: Option<String>This text is shown to the user when the executable doesn’t seem to be present.
For example, brew install foo-cli might be a good InstallHint for foo-cli on Mac OS systems.
interactive_mode: Option<ExecInteractiveMode>Interactive mode of the auth plugins
provide_cluster_info: boolProvideClusterInfo 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.
other: BTreeMap<String, Value>Additional fields not explicitly modeled, preserved for round-trip serialization.
If you are relying on this for standard fields present in upstream client-go, please consider submitting a PR to add them as typed fields.
Trait Implementations§
Source§impl Clone for ExecConfig
impl Clone for ExecConfig
Source§fn clone(&self) -> ExecConfig
fn clone(&self) -> ExecConfig
1.0.0 (const: unstable) · 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 Default for ExecConfig
impl Default for ExecConfig
Source§fn default() -> ExecConfig
fn default() -> 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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
map-response-body only.Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
trace only.Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
trace only.