Enum kube::error::ConfigError[][src]

pub enum ConfigError {
Show variants InvalidBasicAuth(InvalidHeaderValue), InvalidBearerToken(InvalidHeaderValue), UnrefreshableTokenResponse, ConfigInferenceExhausted { cluster_env: Box<Error>, kubeconfig: Box<Error>, }, CurrentContextNotSet, KindMismatch, ApiVersionMismatch, MissingInClusterVariables { hostenv: &'static str, portenv: &'static str, }, InvalidInClusterNamespace(Box<Error>), InvalidInClusterToken(Box<Error>), ExecPluginFailed, MalformedTokenExpirationDate(ParseError), OAuth(OAuthError), LoadConfigFile(Box<Error>), LoadContext { context_name: String, }, LoadClusterOfContext { cluster_name: String, }, FindUser { user_name: String, }, NoKubeconfigPath, Base64Decode(DecodeError), NoAbsolutePath { path: PathBuf, }, ReadFile { path: PathBuf, source: Error, }, NoBase64FileOrData, NoFileOrData, ParseYaml(Error), EmptyKubeconfig(PathBuf), AuthExecStart(Error), AuthExecRun { cmd: String, status: ExitStatus, out: Output, }, AuthExecParse(Error), AuthExec(String),
}
This is supported on crate features config or client only.
Expand description

Possible errors when loading config

Variants

InvalidBasicAuth(InvalidHeaderValue)
InvalidBearerToken(InvalidHeaderValue)
UnrefreshableTokenResponse

Tried to refresh a token and got a non-refreshable token response

ConfigInferenceExhausted
Show fields

Fields of ConfigInferenceExhausted

cluster_env: Box<Error>kubeconfig: Box<Error>
CurrentContextNotSet
KindMismatch
ApiVersionMismatch
MissingInClusterVariables

One or more required in-cluster config options are missing

Show fields

Fields of MissingInClusterVariables

hostenv: &'static strportenv: &'static str
InvalidInClusterNamespace(Box<Error>)
InvalidInClusterToken(Box<Error>)
ExecPluginFailed
MalformedTokenExpirationDate(ParseError)
This is supported on crate feature client only.
OAuth(OAuthError)
This is supported on crate feature oauth only.
LoadConfigFile(Box<Error>)
LoadContext
Show fields

Fields of LoadContext

context_name: String
LoadClusterOfContext
Show fields

Fields of LoadClusterOfContext

cluster_name: String
FindUser
Show fields

Fields of FindUser

user_name: String
NoKubeconfigPath
Base64Decode(DecodeError)
NoAbsolutePath
Show fields

Fields of NoAbsolutePath

path: PathBuf
ReadFile
Show fields

Fields of ReadFile

path: PathBufsource: Error
NoBase64FileOrData
NoFileOrData
ParseYaml(Error)
EmptyKubeconfig(PathBuf)
AuthExecStart(Error)
AuthExecRun
Show fields

Fields of AuthExecRun

cmd: Stringstatus: ExitStatusout: Output
AuthExecParse(Error)
AuthExec(String)

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.