github.com/k8snetworkplumbingwg/sriov-network-operator@v1.2.1-0.20240408194816-2d2e5a45d453/hack/teardown-e2e-kind-cluster.sh (about)

     1  #!/usr/bin/env bash
     2  # Teardown KinD cluster
     3  
     4  if ! command -v kind &> /dev/null; then
     5    echo "KinD is not available"
     6    exit 1
     7  fi
     8  
     9  if systemctl is-active vf-switcher.service -q;then
    10      sudo systemctl stop vf-switcher.service
    11  fi
    12  sudo rm -f /etc/vf-switcher/vf-switcher.yaml
    13  kind delete cluster
    14