diff --git a/justfile b/justfile index 6f642dc9d..69d61e308 100644 --- a/justfile +++ b/justfile @@ -153,7 +153,7 @@ apply target=default_deploy_target: kubectl apply -f ./{{ workspace_dir }}/deployment # Delete Kubernetes manifests. -undeploy: +undeploy platform=default_platform: #!/usr/bin/env bash set -euo pipefail if [[ ! -d ./{{ workspace_dir }} ]]; then @@ -169,6 +169,11 @@ undeploy: echo "Namespace $ns does not exist, nothing to undeploy." exit 0 fi + if [[ {{ platform }} == "AKS-PEER-SNP" ]]; then + kubectl delete --cascade=foreground -f .//{{ workspace_dir }}/deployment + kubectl delete namespace $ns + exit 0 + fi if [[ -f ./{{ workspace_dir }}/deployment/ns.yml ]]; then kubectl delete \ -f ./{{ workspace_dir }}/deployment \