If you want to work on it, please fork.
A helper operator for CAPO to delete resources created by apps in workload clusters.
openstack-cloud-controller-manager in workload cluster creates loadbalancers in OpenStack for services in the cluster. openstack-cinder-csi also creates some volumes in OpenStack for persistentvolumes in the cluster. When the worklaod cluster is deleted, cluster-api-provider-openstack doesn't clean these resources. This controller helps for clean-up of workload clusters.
- It observes
OpenStackClusterobjects. - It doesn't do anything in
reconcileNormalother than adding finalizer. - It respects
cluster.x-k8s.io/cluster-namelabel inOpenStackClusterobjects to get the actual cluster names. clusterTagis built asgiant_swarm_cluster_<management-cluster-name>_<workload_cluster-name>.- When an
OpenStackClusteris deleted, it- cleans volumes ( whose metadata contains
cinder.csi.openstack.org/cluster: <clusterTag>) created by Cinder CSI - cleans loadbalancers ( whose tags contain
kube_service_<clusterTag>.*) created by openstack-cloud-controller-manager
- cleans volumes ( whose metadata contains