Enum kube::config::KubeconfigError [−][src]
pub enum KubeconfigError {
Show 17 variants
CurrentContextNotSet,
KindMismatch,
ApiVersionMismatch,
LoadContext(String),
LoadClusterOfContext(String),
FindUser(String),
FindPath,
ReadConfig(Error, PathBuf),
Parse(Error),
InvalidStructure(Error),
EmptyConfig(PathBuf),
ParseClusterUrl(InvalidUri),
ParseProxyUrl(InvalidUri),
LoadCertificateAuthority(LoadDataError),
LoadClientCertificate(LoadDataError),
LoadClientKey(LoadDataError),
ParseCertificates(PemError),
}
config
only.Expand description
Possible errors when loading kubeconfig
Variants
Failed to determine current context
Kubeconfigs with mismatching kind cannot be merged
Kubeconfigs with mismatching api version cannot be merged
LoadContext(String)
Failed to load current context
Tuple Fields of LoadContext
0: String
LoadClusterOfContext(String)
Failed to load the cluster of context
Tuple Fields of LoadClusterOfContext
0: String
FindUser(String)
Failed to find named user
Tuple Fields of FindUser
0: String
Failed to find the path of kubeconfig
Failed to read kubeconfig
Parse(Error)
Failed to parse kubeconfig YAML
Tuple Fields of Parse
0: Error
InvalidStructure(Error)
The structure of the parsed kubeconfig is invalid
Tuple Fields of InvalidStructure
0: Error
EmptyConfig(PathBuf)
Failed to find a single YAML document in kubeconfig
Tuple Fields of EmptyConfig
0: PathBuf
ParseClusterUrl(InvalidUri)
Failed to parse cluster url
Tuple Fields of ParseClusterUrl
0: InvalidUri
ParseProxyUrl(InvalidUri)
Failed to parse proxy url
Tuple Fields of ParseProxyUrl
0: InvalidUri
LoadCertificateAuthority(LoadDataError)
Failed to load certificate authority
Tuple Fields of LoadCertificateAuthority
LoadClientCertificate(LoadDataError)
Failed to load client certificate
Tuple Fields of LoadClientCertificate
LoadClientKey(LoadDataError)
Failed to load client key
Tuple Fields of LoadClientKey
Failed to parse PEM-encoded certificates
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for KubeconfigError
impl Send for KubeconfigError
impl Sync for KubeconfigError
impl Unpin for KubeconfigError
impl !UnwindSafe for KubeconfigError
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