Skip to content

Commit

Permalink
Fix typo in cluster-clean.sh: kubectl -> _kubectl
Browse files Browse the repository at this point in the history
Signed-off-by: Vasiliy Ulyanov <[email protected]>
  • Loading branch information
vasiliy-ul committed Jan 20, 2022
1 parent 83508a8 commit bd12e39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/cluster-clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ function delete_kubevirt_cr() {
}

function remove_finalizers() {
kubectl get vmsnapshots --all-namespaces -o=custom-columns=NAME:.metadata.name,NAMESPACE:.metadata.namespace,FINALIZERS:.metadata.finalizers --no-headers | grep vmsnapshot-protection | while read p; do
_kubectl get vmsnapshots --all-namespaces -o=custom-columns=NAME:.metadata.name,NAMESPACE:.metadata.namespace,FINALIZERS:.metadata.finalizers --no-headers | grep vmsnapshot-protection | while read p; do
local arr=($p)
local name="${arr[0]}"
local ns="${arr[1]}"
patch_remove_finalizers -n $ns vmsnapshots $name
done

kubectl get vmsnapshotcontents --all-namespaces -o=custom-columns=NAME:.metadata.name,NAMESPACE:.metadata.namespace,FINALIZERS:.metadata.finalizers --no-headers | grep vmsnapshotcontent-protection | while read p; do
_kubectl get vmsnapshotcontents --all-namespaces -o=custom-columns=NAME:.metadata.name,NAMESPACE:.metadata.namespace,FINALIZERS:.metadata.finalizers --no-headers | grep vmsnapshotcontent-protection | while read p; do
local arr=($p)
local name="${arr[0]}"
local ns="${arr[1]}"
Expand Down

0 comments on commit bd12e39

Please sign in to comment.