From 40023ea1d4a1cf206ffdf1a15e7ee4f4518f7711 Mon Sep 17 00:00:00 2001 From: Mitali Salvi Date: Mon, 11 Sep 2023 17:12:46 -0400 Subject: [PATCH] testing creation2 --- .github/workflows/operator-integration-test.yml | 10 +++++----- testing/terraform/eks/deployment/setup-apm.sh | 5 ++++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/operator-integration-test.yml b/.github/workflows/operator-integration-test.yml index f3a833518..ac6b345a6 100644 --- a/.github/workflows/operator-integration-test.yml +++ b/.github/workflows/operator-integration-test.yml @@ -43,11 +43,11 @@ jobs: cd testing/terraform/eks/deployment terraform init terraform validate -# if terraform apply -var="operator_yaml=${{ github.workspace }}/dist/amazon-cloudwatch-agent-operator.yaml" --auto-approve; then -# terraform destroy -auto-approve -# else -# terraform destroy -var="operator_yaml=${{ github.workspace }}/dist/amazon-cloudwatch-agent-operator.yaml" --auto-approve && exit 1 -# fi + if terraform apply -var="operator_yaml=${{ github.workspace }}/dist/amazon-cloudwatch-agent-operator.yaml" --auto-approve; then + terraform destroy -auto-approve + else + terraform destroy -var="operator_yaml=${{ github.workspace }}/dist/amazon-cloudwatch-agent-operator.yaml" --auto-approve && exit 1 + fi # - name: Terraform destroy # if: ${{ cancelled() || failure() }} diff --git a/testing/terraform/eks/deployment/setup-apm.sh b/testing/terraform/eks/deployment/setup-apm.sh index d1a4d31dc..e27940130 100644 --- a/testing/terraform/eks/deployment/setup-apm.sh +++ b/testing/terraform/eks/deployment/setup-apm.sh @@ -13,4 +13,7 @@ do continue fi break -done \ No newline at end of file +done + + +kubectl get pods -A \ No newline at end of file