RDEProjector component indicate missing credentials or secrets for the Kubernetes namespace tkg_cluster_name_namespace, preventing the operation from proceeding:2025-04-22T11:04:06.750Z ERROR Reconciler error {"controller": "rdeprojector", "controllerGroup": "capvcd.cloud-director.domain.com", "controllerKind": "RDEProjector", "rDEProjector": {"name":"tkg_cluster_name","namespace":"default"}, "namespace": "default", "name": "tkg_cluster_name", "reconcileID": "########-####-####-########", "error": "Error getting client credentials to reconcile Cluster [urn:vcloud:entity:vmware:capvcdCluster:########-####-####-########] infrastructure: error getting secret [capi-user-credentials] in namespace [tkg_cluster_name_namespace]: Secret \"capi-user-credentials\" not found", "errorVerbose": "Secret \"capi-user-credentials\" not found\nerror getting secret [capi-user-credentials] in namespace [tkg_cluster_name_namespace]\gitlab.###.domain.com/core-build/vcd-rde-projector/controllers.getUserCredentialsForCluster\n\t/build_path/vcd-rde-projector/controllers/rdeprojector_controller.go:278\gitlab.###.domain.com/core-build/vcd-rde-projector/controllers.2025-04-22T10:43:33.511Z ERROR Reconciler error {"controller": "vcdcluster", "controllerGroup": "infrastructure.cluster.x-k8s.io", "controllerKind": "VCDCluster", "VCDCluster": {"name":"tkg_cluster_name","namespace":"tkg_cluster_name_namespace"}, "namespace": "tkg_cluster_name_namespace", "name": "tkg_cluster_name", "reconcileID": "########-####-####-########", "error": "Error creating VCD client to reconcile Cluster [tkg_cluster_name] infrastructure: error getting client credentials to reconcile Cluster [tkg_cluster_name] infrastructure: [error getting secret [capi-user-credentials] in namespace [tkg_cluster_name_namespace]: Secret \"capi-user-credentials\" not found]", "errorVerbose": "error getting client credentials to reconcile Cluster [tkg_cluster_name] infrastructure: [error getting secret [capi-user-credentials] in namespace [tkg_cluster_name_namespace]: Secret \"capi-user-credentials\" not found]\nError creating VCD client to reconcile Cluster [tkg_cluster_name] infrastructure\ngithub.com/vmware/cluster-api-provider-cloud-director/controllers.(*VCDClusterReconciler).reconcileDelete\n\t/build_path/cayman_cluster-api-provider-cloud-director
NAME STATUS AGEcapi-kubeadm-bootstrap-system Active 55dcapi-kubeadm-control-plane-system Active 55dcapi-system Active 55dcapvcd-system Active 55dcert-manager Active 55ddefault Active 55dkapp-controller Active 55dkapp-controller-packaging-global Active 55dkube-node-lease Active 55dkube-public Active 55dkube-system Active 55drdeprojector-system Active 55dsecretgen-controller Active 55dtkg_cluster_name_namespace Terminating 55dtkg-system Active 55dtkg-system-public Active 55dvmware-system-antrea Active 55dVMware Cloud Director 10.x
Container Service Extension 4.x
This issue is caused by the Kubernetes namespace being stuck in a "Terminating" state, which prevents necessary secrets (such as capi-user-credentials) from being accessed during the resize operation.
Note: The cluster in this state cannot be recovered and it is recommended to restore K8 resources to new cluster.
1. Create new cluster using the steps mentioned in the document: Create a Tanzu Kubernetes Cluster
2. Deploy all the backed up k8s resources in the new cluster.
3. Delete the old cluster directly from the VMware Cloud Director Tenant UI.