Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openebs/mayastor-extensions
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 31d69f90e84d78abcecc752f5d39b2fc45e4e7ff
Choose a base ref
..
head repository: openebs/mayastor-extensions
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5244581b508ec782dc1d0f59b4289c9dabd9601f
Choose a head ref
Showing with 9 additions and 4 deletions.
  1. +9 −4 k8s/supportability/src/lib.rs
13 changes: 9 additions & 4 deletions k8s/supportability/src/lib.rs
Original file line number Diff line number Diff line change
@@ -79,17 +79,22 @@ impl ExecuteOperation for Resource {

async fn execute(&self, cli_args: &Self::Args) -> Result<(), Self::Error> {
let config = kube_proxy::ConfigBuilder::default_api_rest()
.with_kube_config(None)
.with_kube_config(cli_args.kube_config_path.clone())
.with_timeout(*cli_args.timeout)
.with_target_mod(|t| t.with_namespace(&cli_args.namespace))
.build()
.await?;

let rest_client = rest_wrapper::RestClient::new_with_config(config);

execute_resource_dump(cli_args.clone(), rest_client, None, self.clone())
.await
.map_err(|e| anyhow::anyhow!("{:?}", e))
execute_resource_dump(
cli_args.clone(),
rest_client,
cli_args.kube_config_path.clone(),
self.clone(),
)
.await
.map_err(|e| anyhow::anyhow!("{:?}", e))
}
}