k8s returns None rather than zero when checking deployment for replicas exec_app requires commands 's' and '-c' to run correctly Reviewed-on: https://git.nationtech.io/NationTech/harmony/pulls/120 Co-authored-by: Willem <wrolleman@nationtech.io> Co-committed-by: Willem <wrolleman@nationtech.io>
19 lines
541 B
Rust
19 lines
541 B
Rust
use harmony::{
|
|
inventory::Inventory, modules::storage::ceph::ceph_remove_osd_score::CephRemoveOsd,
|
|
topology::K8sAnywhereTopology,
|
|
};
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
let ceph_score = CephRemoveOsd {
|
|
osd_deployment_name: "rook-ceph-osd-2".to_string(),
|
|
rook_ceph_namespace: "rook-ceph".to_string(),
|
|
};
|
|
|
|
let topology = K8sAnywhereTopology::from_env();
|
|
let inventory = Inventory::autoload();
|
|
harmony_cli::run(inventory, topology, vec![Box::new(ceph_score)], None)
|
|
.await
|
|
.unwrap();
|
|
}
|