2020-10-09 21:25:34 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
2020-10-30 22:18:40 +00:00
|
|
|
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
|
2020-10-09 21:25:34 +00:00
|
|
|
cd "${ROOT}"
|
|
|
|
|
2023-10-10 17:03:20 +00:00
|
|
|
reg_name='kind-registry.local'
|
|
|
|
docker network disconnect "kind" "${reg_name}" || true
|
|
|
|
docker stop "${reg_name}" || true
|
|
|
|
docker rm "${reg_name}" || true
|
|
|
|
|
2020-10-09 21:25:34 +00:00
|
|
|
kind delete cluster --name pinniped
|