mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 19:36:22 +00:00
Automatic merge from submit-queue remove useless code in kubelet **What this PR does / why we need it**: This code has logical error as the etc-hosts file will be recreated even it already exists. In addition, if do not recreate etc-hosts file when it exists, the pod ip in it will be out of date when pod ips change. So remove this code as it is not needed. **Which issue this PR fixes**: **Special notes for your reviewer**: xrefer: #44481, #44473 **Release note**: ```release-note NONE ```