INNER CODE UNIT · Rust
get_kubeconfig_path
kubie-org/kubie · src/kubeconfig.rs:309
pub fn get_kubeconfig_path() -> Result<PathBuf> {
let path = env::var_os("KUBIE_KUBECONFIG").context("KUBIE_CONFIG not found")?;
Ok(PathBuf::from(path))
}
pub fn get_current_config() -> Result<KubeConfig> {
ioutil::read_yaml(get_kubeconfig_path()?)
}