From 066af59c1bc319fc7a19a7a68ba4560cfbb3667c Mon Sep 17 00:00:00 2001
From: hanenMizouni <hanen.mizouni@outscale.com>
Date: Tue, 19 Nov 2024 14:27:15 +0000
Subject: [PATCH] ensure the deletion of capi resources in githubactions

Signed-off-by: hanenMizouni <hanen.mizouni@outscale.com>
---
 .github/workflows/unit-func-e2e-test.yaml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.github/workflows/unit-func-e2e-test.yaml b/.github/workflows/unit-func-e2e-test.yaml
index fa9502a5a..e952f8a33 100644
--- a/.github/workflows/unit-func-e2e-test.yaml
+++ b/.github/workflows/unit-func-e2e-test.yaml
@@ -185,6 +185,11 @@ jobs:
         osc_access_key: ${{ secrets.OSC_ACCESS_KEY }}
         osc_secret_key: ${{ secrets.OSC_SECRET_KEY }}
         osc_region: ${{ secrets.OSC_REGION }}
+    - name: force delete cluster-api
+      run: make force-delete-capo
+      shell: bash
+      env:
+        KUBECONFIG: rke-cluster-for-cluster-api/rke/kube_config_cluster.yml
   unit_test:
     runs-on: ubuntu-latest
     steps: