Enum kube_client::config::KubeconfigError
source · pub enum KubeconfigError {
Show 17 variants
CurrentContextNotSet,
KindMismatch,
ApiVersionMismatch,
LoadContext(String),
LoadClusterOfContext(String),
FindUser(String),
FindPath,
ReadConfig(Error, PathBuf),
Parse(Error),
InvalidStructure(Error),
MissingClusterUrl,
ParseClusterUrl(InvalidUri),
ParseProxyUrl(InvalidUri),
LoadCertificateAuthority(LoadDataError),
LoadClientCertificate(LoadDataError),
LoadClientKey(LoadDataError),
ParseCertificates(PemError),
}
Expand description
Possible errors when loading kubeconfig
Variants§
CurrentContextNotSet
Failed to determine current context
KindMismatch
Kubeconfigs with mismatching kind cannot be merged
ApiVersionMismatch
Kubeconfigs with mismatching api version cannot be merged
LoadContext(String)
Failed to load current context
LoadClusterOfContext(String)
Failed to load the cluster of context
FindUser(String)
Failed to find named user
FindPath
Failed to find the path of kubeconfig
ReadConfig(Error, PathBuf)
Failed to read kubeconfig
Parse(Error)
Failed to parse kubeconfig YAML
InvalidStructure(Error)
The structure of the parsed kubeconfig is invalid
MissingClusterUrl
Cluster url is missing on selected cluster
ParseClusterUrl(InvalidUri)
Failed to parse cluster url
ParseProxyUrl(InvalidUri)
Failed to parse proxy url
LoadCertificateAuthority(LoadDataError)
Failed to load certificate authority
LoadClientCertificate(LoadDataError)
Failed to load client certificate
LoadClientKey(LoadDataError)
Failed to load client key
ParseCertificates(PemError)
Failed to parse PEM-encoded certificates
Trait Implementations§
source§impl Debug for KubeconfigError
impl Debug for KubeconfigError
source§impl Display for KubeconfigError
impl Display for KubeconfigError
source§impl Error for KubeconfigError
impl Error for KubeconfigError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for KubeconfigError
impl !RefUnwindSafe for KubeconfigError
impl Send for KubeconfigError
impl Sync for KubeconfigError
impl Unpin for KubeconfigError
impl !UnwindSafe for KubeconfigError
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
Mutably borrows from an owned value. Read more