Fix a bug that headless service without ports fails to have endpoint created. by MrHohn · Pull Request #62497 · kubernetes/kubernetes

What this PR does / why we need it: Follow up of #47250. Headless service without ports fails to have corresponding endpoint created because endpoint controller deliberately attaches a dummy endpoi...