From 939827fcb3c2ba5ffcfe9d83106c28e6ab744e73 Mon Sep 17 00:00:00 2001 From: Zaid Albirawi Date: Wed, 23 Oct 2024 19:29:22 -0400 Subject: [PATCH] add tykoasapis to down.sh --- src/helpers/down/crds.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/helpers/down/crds.sh b/src/helpers/down/crds.sh index 83d9da3c..5d51d056 100644 --- a/src/helpers/down/crds.sh +++ b/src/helpers/down/crds.sh @@ -1,11 +1,13 @@ set +e; policies=$(kubectl get tykpolicies --namespace "$namespace" 2> /dev/null | awk '{print $1}' | tail -n +2 | tr '\n' ' '); apis=$(kubectl get tykapis --namespace "$namespace" 2> /dev/null | awk '{print $1}' | tail -n +2 | tr '\n' ' '); +oasapis=$(kubectl get tykoasapis --namespace "$namespace" 2> /dev/null | awk '{print $1}' | tail -n +2 | tr '\n' ' '); supergraphs=$(kubectl get supergraphs --namespace "$namespace" 2> /dev/null | awk '{print $1}' | tail -n +2 | tr '\n' ' '); subgraphs=$(kubectl get subgraphs --namespace "$namespace" 2> /dev/null | awk '{print $1}' | tail -n +2 | tr '\n' ' '); kubectl delete --namespace "$namespace" tykpolicies $policies &> /dev/null; kubectl delete --namespace "$namespace" tykapis $apis &> /dev/null; +kubectl delete --namespace "$namespace" tykoasapis $oasapis &> /dev/null; kubectl delete --namespace "$namespace" supergraphs $supergraphs &> /dev/null; kubectl delete --namespace "$namespace" subgraphs $subgraphs &> /dev/null; set -e;