mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-11-21 09:31:28 -08:00
22 lines
584 B
Bash
Executable File
22 lines
584 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright 2024 New Vector Ltd
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
|
set -e
|
|
|
|
kind_cluster_name="ess-helm"
|
|
|
|
if kind get clusters 2> /dev/null| grep "$kind_cluster_name"; then
|
|
kind delete cluster --name $kind_cluster_name
|
|
else
|
|
echo "Kind cluster ${kind_cluster_name} already destoryed"
|
|
fi
|
|
|
|
if docker ps -a | grep "${kind_cluster_name}-registry"; then
|
|
docker stop "${kind_cluster_name}-registry" || true
|
|
docker rm "${kind_cluster_name}-registry" || true
|
|
else
|
|
echo "Kind cluster's local registry already destroyed"
|
|
fi
|