Skip to content

Commit

Permalink
Cleanup kyma resources for faster kyma runtime cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kwiatekus committed Nov 8, 2024
1 parent 88d8d5f commit 99a79bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/_integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ jobs:
with:
path: "tests/btp/bin"

- name: Cleanup Kyma
shell: bash
run: |
KUBECONFIG=tmp/sa-kubeconfig.yaml make cleanup-kyma
- name: Force delete btp account
if: always()
run: |
Expand Down
7 changes: 7 additions & 0 deletions tests/btp/hack/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ create-object-store-reference:
@kubectl apply -n kyma-system -f ../k8s-resources/dependencies/object-store-binding.yaml --kubeconfig ${KUBECONFIG}
@while ! kubectl get secret object-store-reference-binding --namespace kyma-system --kubeconfig ${KUBECONFIG}; do echo "Waiting for object-store-reference-binding secret..."; sleep 1; done

.PHONY cleanup-kyma:
cleanup-kyma:
@echo "Deleting resources from kyma..."
@kubectl delete -f ../k8s-resources/simple-app --kubeconfig ${KUBECONFIG}
@kubectl delete -n kyma-system servicebindings.services.cloud.sap.com --all
@kubectl delete -n kyma-system serviceinstances.services.cloud.sap.com --all

.PHONY cleanup-tf-force:
cleanup-tf-force:
rm -rf ../tf/*.txt
Expand Down

0 comments on commit 99a79bb

Please sign in to comment.