Merge pull request #135577 from BenTheElder/fix-rsync-1.33

fix rsync IP address detection for v1.33
This commit is contained in:
Kubernetes Prow Robot
2025-12-04 00:50:23 -08:00
committed by GitHub

View File

@@ -621,7 +621,7 @@ function kube::build::start_rsyncd_container() {
fi
local container_ip
container_ip=$("${DOCKER[@]}" inspect --format '{{ .NetworkSettings.IPAddress }}' "${KUBE_RSYNC_CONTAINER_NAME}")
container_ip=$("${DOCKER[@]}" inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}},{{end}}' "${KUBE_RSYNC_CONTAINER_NAME}" | cut -d',' -f1)
# Sometimes we can reach rsync through localhost and a NAT'd port. Other
# times (when we are running in another docker container on the Jenkins