mirror of
https://github.com/immich-app/yucca.git
synced 2026-09-30 13:33:00 +08:00
* impl. local kube * add support for op injected oidc secrets * ci: set least-privilege workflow token permissions
16 lines
368 B
Bash
Executable File
16 lines
368 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#MISE description="Delete k3d cluster"
|
|
set -euo pipefail
|
|
|
|
CLUSTER_NAME="yucca"
|
|
|
|
if k3d cluster get "${CLUSTER_NAME}" >/dev/null 2>&1; then
|
|
k3d cluster delete "${CLUSTER_NAME}"
|
|
else
|
|
echo "Cluster ${CLUSTER_NAME} does not exist"
|
|
fi
|
|
|
|
if k3d registry get k3d-registry.localhost >/dev/null 2>&1; then
|
|
k3d registry delete k3d-registry.localhost
|
|
fi
|