Description of problem:
when use copy-to-node with `-l` , the command always failed with error: unable to get interesting nodes: at least one resource must be specified to use a selector
Version-Release number of selected component (if applicable):
4.16
How reproducible:
always
Steps to Reproduce:
1. oc adm copy-to-node --copy=README.md=/tmp -l node-role.kubernetes.io/worker=
Actual results:
oc adm copy-to-node --copy=README.md=/tmp -l node-role.kubernetes.io/worker= error: unable to get interesting nodes: at least one resource must be specified to use a selector [root@localhost oc]# echo $? 1
Expected results:
no error
Additional info:
oc get node -l node-role.kubernetes.io/worker= NAME STATUS ROLES AGE VERSION ip-10-0-0-59.ec2.internal Ready worker 7h37m v1.28.6+f1618d5 ip-10-0-25-73.ec2.internal Ready worker 7h37m v1.28.6+f1618d5 ip-10-0-39-121.ec2.internal Ready worker 7h37m v1.28.6+f1618d5