Enum kube_client::error::ConfigError [−][src]
pub enum ConfigError {
Show 29 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)Tuple Fields of InvalidBasicAuth
InvalidBearerToken(InvalidHeaderValue)Tuple Fields of InvalidBearerToken
Tried to refresh a token and got a non-refreshable token response
One or more required in-cluster config options are missing
MalformedTokenExpirationDate(ParseError)This is supported on crate feature
client only.Tuple Fields of MalformedTokenExpirationDate
0: ParseErrorOAuth(OAuthError)This is supported on crate feature
oauth only.Tuple Fields of OAuth
0: OAuthErrorFields of LoadContext
context_name: StringFields of LoadClusterOfContext
cluster_name: StringFields of FindUser
user_name: StringBase64Decode(DecodeError)Tuple Fields of Base64Decode
0: DecodeErrorFields of NoAbsolutePath
path: PathBufParseYaml(Error)Tuple Fields of ParseYaml
0: ErrorEmptyKubeconfig(PathBuf)Tuple Fields of EmptyKubeconfig
0: PathBufAuthExecStart(Error)Tuple Fields of AuthExecStart
0: ErrorFields of AuthExecRun
AuthExecParse(Error)Tuple Fields of AuthExecParse
0: ErrorAuthExec(String)Tuple Fields of AuthExec
0: StringTrait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl !UnwindSafe for ConfigError
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more