Merge pull request #127072 from dims/switch-back-to-localhost-from-127.0.0.1

Switch back to localhost from 127.0.0.1 for daemon restart tests
This commit is contained in:
Kubernetes Prow Robot 2024-09-02 21:01:15 +01:00 committed by GitHub
commit e5bafe2bed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,10 +107,10 @@ func (r *RestartDaemonConfig) waitUp(ctx context.Context) {
var healthzCheck string
if r.enableHTTPS {
healthzCheck = fmt.Sprintf(
"curl -sk -o %v -I -w \"%%{http_code}\" https://127.0.0.1:%v/healthz", nullDev, r.healthzPort)
"curl -sk -o %v -I -w \"%%{http_code}\" https://localhost:%v/healthz", nullDev, r.healthzPort)
} else {
healthzCheck = fmt.Sprintf(
"curl -s -o %v -I -w \"%%{http_code}\" http://127.0.0.1:%v/healthz", nullDev, r.healthzPort)
"curl -s -o %v -I -w \"%%{http_code}\" http://localhost:%v/healthz", nullDev, r.healthzPort)
}