GoogleCloudPlatform / k8s-config-connector

GCP Config Connector, a Kubernetes add-on for managing GCP resources
https://cloud.google.com/config-connector/docs/overview
Apache License 2.0
893 stars 222 forks source link

CRDs reconciliation by ConfigConnector #663

Open gaurav517 opened 2 years ago

gaurav517 commented 2 years ago

Describe your question

We are using config-connector version 1.85 but we still see some old CRDs lying around. For example a CRD with kind: ServiceMapping and with cnrm.cloud.google.com/version: 1.44.0 in annotation. I can't see this crd type in official docs.

How is the cleanup of these old CRDs managed? Do they need manual cleanup? Is it safe to clean them up? We can use ServiceMapping as an example.

Thanks a lot.

jcanseco commented 2 years ago

Hi @gaurav517. We actually recommend deleting the ServiceMapping CRD and any ServiceMapping CRs.

These are legacy resources that are no longer needed and are effectively ignored by KCC. I can't remember why we didn't choose to automate their deletion (probably safety concerns), but I'd recommend manually deleting them if you can.