When connecting to a member cluster using a ServiceAccountToken and removing the member cluster, the steps are as follows:
Obtain the connection credentials from the ServiceAccountToken secret.
Remove the connection credentials from the secret.
Remove the finalizers from the fcluster.
In the event of a failure during the third step, when re-entering the queue, the first step retries to obtain the credentials from the secret. However, since the credentials were already deleted in the second step, the attempt to retrieve the credentials fails. Therefore, in this scenario, a retry is added in the third step to address this issue.
When connecting to a member cluster using a ServiceAccountToken and removing the member cluster, the steps are as follows:
In the event of a failure during the third step, when re-entering the queue, the first step retries to obtain the credentials from the secret. However, since the credentials were already deleted in the second step, the attempt to retrieve the credentials fails. Therefore, in this scenario, a retry is added in the third step to address this issue.