mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-02-05 20:41:16 +00:00
20 lines
496 B
Bash
Executable File
20 lines
496 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright 2020-2024 the Pinniped contributors. All Rights Reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set -euo pipefail
|
|
|
|
CLUSTER_NAME=$(cat aks-cluster-pool/name)
|
|
export CLUSTER_NAME
|
|
export KUBECONFIG="aks-cluster-pool/metadata"
|
|
|
|
az login \
|
|
--service-principal \
|
|
--tenant "$AZURE_TENANT" \
|
|
--username "$AZURE_USERNAME" \
|
|
--password "$AZURE_PASSWORD"
|
|
|
|
echo "Removing $CLUSTER_NAME..."
|
|
az aks delete --name "$CLUSTER_NAME" --resource-group "$AZURE_RESOURCE_GROUP" --yes
|