From b6dfc072c3a7e4dbfb4e266c7790dac78d7b4ff9 Mon Sep 17 00:00:00 2001 From: jjllee Date: Fri, 29 Nov 2024 19:24:07 -0800 Subject: [PATCH] fix delete namespace --- .github/workflows/java-eks-otlp-ocb-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/java-eks-otlp-ocb-test.yml b/.github/workflows/java-eks-otlp-ocb-test.yml index 0daeba4f..00143abd 100644 --- a/.github/workflows/java-eks-otlp-ocb-test.yml +++ b/.github/workflows/java-eks-otlp-ocb-test.yml @@ -338,9 +338,9 @@ jobs: working-directory: terraform/java/eks-otlp-ocb/util run: | aws eks update-kubeconfig --name ${{ env.CLUSTER_NAME }} --region ${{ env.E2E_TEST_AWS_REGION }} + kubectl delete ns ${{ env.SAMPLE_APP_NAMESPACE }} eksctl delete iamserviceaccount --name cloudwatch-agent --namespace amazon-cloudwatch --cluster ${{ env.CLUSTER_NAME }} --region ${{ env.E2E_TEST_AWS_REGION }} kubectl delete ns opentelemetry-operator-system - kubectl delete ns -n ${{ env.SAMPLE_APP_NAMESPACE }} aws eks update-kubeconfig --name ${{ env.CLUSTER_NAME }} --region ${{ env.E2E_TEST_AWS_REGION }} - name: Terraform destroy