Skip to content

Commit e6894e3

Browse files
authored
Merge pull request #16935 from ComradeProgrammer/fix_docker_env
fix: clearing .ssh/known_hosts in cleanup of test environment
2 parents baea041 + d32fd69 commit e6894e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hack/jenkins/cron/cleanup_and_reboot_Linux.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ function cleanup() {
5151
fi
5252
fi
5353
sudo killall --user "${user}" minikube >/dev/null 2>&1 || true
54+
# clear the known_host file (~/.ssh/known_hosts)
55+
if test -f /home/${user}/.ssh/known_hosts; then
56+
sudo echo "" > /home/${user}/.ssh/known_hosts
57+
fi
5458
done
5559
# clean docker left overs
5660
echo -e "\ncleanup docker..."

0 commit comments

Comments
 (0)