Skip to content

Commit

Permalink
Adjust to renamed kube config constructor
Browse files Browse the repository at this point in the history
The kube `Config` constructors have been renamed in version 0.75.0:
kube-rs/kube#1001.
  • Loading branch information
teskje committed Nov 10, 2022
1 parent 536de7d commit d17c907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/orchestrator-kubernetes/src/util.rs
Expand Up @@ -25,7 +25,7 @@ pub async fn create_client(context: String) -> Result<(Client, String), anyhow::
};
let kubeconfig = match Config::from_kubeconfig(&kubeconfig_options).await {
Ok(config) => config,
Err(kubeconfig_err) => match Config::from_cluster_env() {
Err(kubeconfig_err) => match Config::incluster_env() {
Ok(config) => config,
Err(in_cluster_err) => {
bail!("failed to infer config: in-cluster: ({in_cluster_err}), kubeconfig: ({kubeconfig_err})");
Expand Down

0 comments on commit d17c907

Please sign in to comment.