Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelArtists committed Mar 8, 2024
1 parent 8ccbb46 commit 76f163f
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/k8s-regression-tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,25 @@ jobs:
# export KUBECONFIG=~/.kube/regression-cluster.yaml
# kubectl delete -f grafana-service.yaml,panoptichain-service.yaml,prometheus-service.yaml,grafana-deployment.yaml,grafana-claim0-persistentvolumeclaim.yaml,panoptichain-deployment.yaml,prometheus-deployment.yaml,prometheus-claim0-persistentvolumeclaim.yaml --namespace=pos --context=gke_prj-polygonlabs-devtools-dev_europe-west2_ci-cluster-1

- name: Remove all datadog agent resources
register: tf_result
retries: 3
delay: 5
until: tf_result is not failed
run: |
cd panoptichain/terraform
- name: Remove all Datadog agent resources
env:
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
CORALOGIX_API_KEY: ${{ secrets.CORALOGIX_API_KEY }}
run: |
cd panoptichain/terraform
retries=3
delay=5
count=0
while [ $count -lt $retries ]; do
terraform init
terraform destroy -auto-approve -target=helm_release.datadog_agent -var="datadog_api_key=${{ secrets.DATADOG_API_KEY }}" -var="coralogix_api_key=${{ secrets.CORALOGIX_API_KEY }}"
terraform destroy -auto-approve -target=helm_release.datadog_agent -var="datadog_api_key=${DATADOG_API_KEY}" -var="coralogix_api_key=${CORALOGIX_API_KEY}"
if [ $? -eq 0 ]; then
break
fi
count=$((count+1))
sleep $delay
done
- name: Finally, remove pos devnet resources and return to clean slate GKE environment
run: |
cd polygon-devnets/kubernetes/pos
Expand Down

0 comments on commit 76f163f

Please sign in to comment.