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

Handle Asset Inventory caching up to 12h deleted services like the anthos KCC cluster #197

Open obriensystems opened 1 year ago

obriensystems commented 1 year ago

Asset Inventory will still show deleted services for a period after deletion - not as long as the 30 day deleted project cache but between 12 and 24h

For example - 3 separate KCC cluster were stood up 48h ago around 12h ago one of the 3 was deleted

The other 2 were deleted 30 min ago and still show in asset inventory

root_@cloudshell:~/wse_github/obriensystems/pubsec-declarative-toolkit/solutions/landing-zone (controller-agz-1201)$ gcloud anthos config controller delete --location northamerica-northeast1 pdt-na1b --quiet
Delete request issued for: [pdt-na1b]
Waiting for operation [projects/controller-agz-1201/locations/northamerica-northeast1/operations/operation-1670117796150-5eef699f8faff-1ea7c3e8-a3cd72cf] to complete...done.     
Deleted instance [pdt-na1b].

The clusters show as running in AI but they are not up as expected in GKE

Screen Shot 2022-12-03 at 20 53 07 Screen Shot 2022-12-03 at 20 53 25

Expected event diff

Screen Shot 2022-12-03 at 20 52 31
obriensystems commented 1 year ago

backport https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/issues/214

obriensystems commented 1 year ago

The reason for the caching looks to be reuse of the cluster - if you recreate it under the same name - in the same project