Skip to content

Commit

Permalink
add tykoasapis to down.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
zalbiraw committed Oct 23, 2024
1 parent b475b0d commit 939827f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/helpers/down/crds.sh
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 939827f

Please sign in to comment.