GoogleCloudPlatform / pubsec-declarative-toolkit

The GCP PubSec Declarative Toolkit is a collection of declarative solutions to help you on your Journey to Google Cloud. Solutions are designed using Config Connector and deployed using Config Controller.
Apache License 2.0
31 stars 28 forks source link

Automation: deletion of the landing zone should include the 5 ns - policies, logging, networking, projects, hierarchy - or let the config controller handle deletion via kpt live destroy #593

Open obriensystems opened 10 months ago

obriensystems commented 10 months ago

part of #446

https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/wiki/DevOps#delete-the-landing-zone

See original documentation

Add to the documentation and automation, currently we do only

kubectl delete gcp --all

https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/blob/main/docs/landing-zone-v2/README.md#clean-up

446

https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/blob/gh446-hub/solutions/setup.sh

Why are we not letting the config controller handle services deletion it currently controls - using

  kpt live destroy $REL_SUB_PACKAGE

We will add

Screenshot 2023-10-22 at 09 46 49
  kubectl delete gcp -n projects --all
  kubectl delete gcp -n networking --all
  kubectl delete gcp -n hierarchy --all
  kubectl delete gcp -n policies --all
  kubectl delete gcp -n logging --all
fmichaelobrien commented 9 months ago

fix https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/issues/743