mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-09-06 08:07:08 +00:00
27 lines
1.1 KiB
Bash
Executable File
27 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Copyright 2020-2024 the Pinniped contributors. All Rights Reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set -euxo pipefail
|
|
|
|
export KUBECONFIG="$PWD/cluster-pool/metadata"
|
|
|
|
# uninstall concierge
|
|
echo "deleting concierge from the cluster..."
|
|
kubectl delete -f deployment-yamls/install-pinniped-concierge-resources.yaml
|
|
kubectl wait --for=delete --timeout=60s -n pinniped-concierge deployments/pinniped-concierge
|
|
kubectl delete -f deployment-yamls/install-pinniped-concierge-crds.yaml
|
|
kubectl wait --for=delete --timeout=60s crd -l app=pinniped-concierge
|
|
|
|
# uninstall local user authenticator
|
|
echo "deleting local user authenticator from the cluster..."
|
|
kubectl delete -f deployment-yamls/install-local-user-authenticator.yaml
|
|
kubectl wait --for=delete --timeout=60s -n local-user-authenticator deployments/local-user-authenticator
|
|
|
|
# uninstall supervisor
|
|
echo "deleting supervisor from the cluster..."
|
|
kubectl delete -f deployment-yamls/install-pinniped-supervisor.yaml
|
|
kubectl wait --for=delete --timeout=60s -n pinniped-supervisor deployments/pinniped-supervisor
|
|
|