change crictl sandboxes to pods; other references to sandboxes
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
This commit is contained in:
@@ -29,14 +29,14 @@ crictl_rm_stopped_containers() {
|
||||
done
|
||||
}
|
||||
|
||||
crictl_stop_sandboxes() {
|
||||
for x in $($CRICTL_CLI sandboxes | awk '{ print $1 }' | awk '{if(NR>1)print}') ;do
|
||||
crictl_stop_pods() {
|
||||
for x in $($CRICTL_CLI pods | awk '{ print $1 }' | awk '{if(NR>1)print}') ;do
|
||||
$CRICTL_CLI stops $x
|
||||
done
|
||||
}
|
||||
|
||||
crictl_rm_sandboxes() {
|
||||
for x in $($CRICTL_CLI sandboxes | awk '{ print $1 }' | awk '{if(NR>1)print}') ;do
|
||||
crictl_rm_pods() {
|
||||
for x in $($CRICTL_CLI pods | awk '{ print $1 }' | awk '{if(NR>1)print}') ;do
|
||||
$CRICTL_CLI rms $x
|
||||
done
|
||||
}
|
||||
@@ -50,6 +50,6 @@ crictl_rm_images() {
|
||||
command -v crictl >/dev/null 2>&1 || { echo >&2 "crictl not installed. Install from https://github.com/kubernetes-incubator/cri-tools. Aborting."; exit 2; }
|
||||
crictl_stop_running_containers
|
||||
crictl_rm_stopped_containers
|
||||
crictl_stop_sandboxes
|
||||
crictl_rm_sandboxes
|
||||
crictl_stop_pods
|
||||
crictl_rm_pods
|
||||
crictl_rm_images
|
||||
|
||||
Reference in New Issue
Block a user