When run kcp workload cordon or kcp workload drain i see that both commands move running workloads to another existing cluster in the same location where as i would expect drain command to move the workloads and cordon command not to move the workloads and do not schedule any more workloads on it once it is cordoned.
Version:
kcp version v1.24.3+kcp-v0.10.0
Steps To Reproduce
Add a workspace called lw1 kubectl ws create lw1
Add two synctargets (ocp clusters, built using flexy) called cluster1 & cluster2 using workload sync command kubectl kcp workload sync <cluster_name> --syncer-image=ghcr.io/kcp-dev/kcp/syncer:v0.10.0 -o cluster-syncer.yaml
Apply the syncer.yaml file using the command export KUBECONFIG=<path_to_ocp_cluster_kubeconfig> kubectl apply -f syncer.yaml
Repeat steps 3 &4 and create another synctarget with name cluster2 and add it to kcp
Now create another workspace called ww1 kubectl ws create ww1
Describe the bug
When run kcp workload cordon or kcp workload drain i see that both commands move running workloads to another existing cluster in the same location where as i would expect drain command to move the workloads and cordon command not to move the workloads and do not schedule any more workloads on it once it is cordoned.
Version: kcp version v1.24.3+kcp-v0.10.0
Steps To Reproduce
kubectl ws create lw1
kubectl kcp workload sync <cluster_name> --syncer-image=ghcr.io/kcp-dev/kcp/syncer:v0.10.0 -o cluster-syncer.yaml
export KUBECONFIG=<path_to_ocp_cluster_kubeconfig> kubectl apply -f syncer.yaml
kubectl ws create ww1
kubectl kcp bind compute <full_path_lw1_workspace>
kubectl create deployment kuard --image gcr.io/kuar-demo/kuard-amd64:blue
oc get pods --all-namespaces | grep kuard
kcp workload cordon <cluster_name>
Expected Behaviour
In openshift, drain moves the workloads & cordon does not move workload . Expect similar behavior for kcp as well
Additional Context
No response