What happened:
When I use karmadactl to join a cluster, karmadactl exits abnormally due to environment problems. When I use karmadactl to join the same cluster again, an error message is displayed, indicating that the cluster already exists. (error message:the same cluster has been registered with name cluster1). According to the code, the join is not idempotent and needs to support reentrant. The unjoin is similar.
What you expected to happen:
Run the karmadactl join command to join the same cluster. A success message is returned.
How to reproduce it (as minimally and precisely as possible):
When karmadactl is used to join a cluster, the karmadactl program is terminated. When karmadactl is used to join the same cluster again, an error is reported.
Anything else we need to know?:
Environment:
Karmada version:
kubectl-karmada or karmadactl version (the result of kubectl-karmada version or karmadactl version): v1.10.0.preview2
What happened: When I use karmadactl to join a cluster, karmadactl exits abnormally due to environment problems. When I use karmadactl to join the same cluster again, an error message is displayed, indicating that the cluster already exists. (error message:the same cluster has been registered with name cluster1). According to the code, the join is not idempotent and needs to support reentrant. The unjoin is similar.
What you expected to happen: Run the karmadactl join command to join the same cluster. A success message is returned.
How to reproduce it (as minimally and precisely as possible): When karmadactl is used to join a cluster, the karmadactl program is terminated. When karmadactl is used to join the same cluster again, an error is reported.
Anything else we need to know?:
Environment:
kubectl-karmada version
orkarmadactl version
): v1.10.0.preview2