forked from openebs/mayastor-control-plane
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(bors): merge pull request openebs#855
855: feat(topology): add show labels in pools r=sinhaashish a=sinhaashish Get pool ``` [nix-shell:~/code/rust/mayastor-extensions]$ ./target/debug/kubectl-mayastor get pool pool-on-node-1 -n openebs --show-labels ID DISKS MANAGED NODE STATUS CAPACITY ALLOCATED AVAILABLE COMMITTED LABELS pool-on-node-1 aio:///dev/sdb?uuid=b324aa79-c8b3-4859-a6e8-1a51fbc5d944 true node-1-237668 Online 10GiB 0 B 10GiB 0 B topology-key=topology-value ``` List pools ``` [nix-shell:~/code/rust/mayastor-extensions]$ ./target/debug/kubectl-mayastor get pools -n openebs --show-labels ID DISKS MANAGED NODE STATUS CAPACITY ALLOCATED AVAILABLE COMMITTED LABELS pool-on-node-2 aio:///dev/sdb?uuid=8045fe61-ae51-429b-9c73-4f8f60c42d44 true node-2-237668 Online 10GiB 0 B 10GiB 0 B pool-on-node-0 aio:///dev/sdb?uuid=4b12de79-fa6c-4bfd-9ed0-4f5f57cfeb4c true node-0-237668 Online 10GiB 0 B 10GiB 0 B zone=us-east-1 pool-on-node-1 aio:///dev/sdb?uuid=b324aa79-c8b3-4859-a6e8-1a51fbc5d944 true node-1-237668 Online 10GiB 0 B 10GiB 0 B topology-key=topology-value ``` List Pools with node filter ``` [nix-shell:~/code/rust/mayastor-extensions]$ ./target/debug/kubectl-mayastor get pools -n openebs --show-labels --node node-2-237668 ID DISKS MANAGED NODE STATUS CAPACITY ALLOCATED AVAILABLE COMMITTED LABELS pool-on-node-2 aio:///dev/sdb?uuid=8045fe61-ae51-429b-9c73-4f8f60c42d44 true node-2-237668 Online 10GiB 0 B 10GiB 0 B [nix-shell:~/code/rust/mayastor-extensions]$ ./target/debug/kubectl-mayastor get pools -n openebs --show-labels --node node-1-237668 ID DISKS MANAGED NODE STATUS CAPACITY ALLOCATED AVAILABLE COMMITTED LABELS pool-on-node-1 aio:///dev/sdb?uuid=b324aa79-c8b3-4859-a6e8-1a51fbc5d944 true node-1-237668 Online 10GiB 0 B 10GiB 0 B topology-key=topology-value [nix-shell:~/code/rust/mayastor-extensions]$ ./target/debug/kubectl-mayastor get pools -n openebs --show-labels --node node-0-237668 ID DISKS MANAGED NODE STATUS CAPACITY ALLOCATED AVAILABLE COMMITTED LABELS pool-on-node-0 aio:///dev/sdb?uuid=4b12de79-fa6c-4bfd-9ed0-4f5f57cfeb4c true node-0-237668 Online 10GiB 0 B 10GiB 0 B zone=us-east-1 ``` Co-authored-by: sinhaashish <[email protected]> Signed-off-by: sinhaashish <[email protected]>
- Loading branch information
1 parent
d799fd0
commit 687a123
Showing
3 changed files
with
144 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters