GoogleCloudPlatform / GoogleCloudPlatform/pubsec-declarative-toolkit

Unable to clean up all deployed solution resources easily

Open
#771 1 comment 0 reactions 0 assignees View on GitHub
delete
Dominant language
Shell
Stars
36
Forks
26
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Once all solutions are deployed, you are not able to easily figure out the install sequence of each solution and then destroy the solution in the reserve sequence of the initial deployment sequence. When you have to delete all resources by the “kubectl delete –all -A”, some solution resources won’t be deleted.

**To Reproduce**

Step1: Deploy a complex kcc landing zone including core landing zone, gatekeeper, client setup, client landing zone, client project packages.
Step2: Perform a full cleanup by the below commands.
```
kubectl delete gcp --all -A
```
Step3: Found a lot f resources won't be deleted as shown below no matter how many times you run the above command to cleanup.
![image](https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/assets/95398233/b63aeba3-5613-4e73-bebe-ce0b054e24d0)

![image](https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/assets/95398233/d5bdb47b-800b-4479-bc17-4e161143b02c)
![image](https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/assets/95398233/144d099a-ca04-472b-bf30-fc38ce201f65)

**Expected behavior**
A full-tested one-step cleanup solution/guide/document should be provided so that we can destroy all deployed resources easily and smoothly without any issues.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.