Skip to content

Commit edca070

Browse files
authored
Merge pull request kubernetes#135578 from BenTheElder/fix-rsync-1.32
fix rsync IP address detection for v1.32
2 parents 72cc34d + fff934e commit edca070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ function kube::build::start_rsyncd_container() {
621621
fi
622622

623623
local container_ip
624-
container_ip=$("${DOCKER[@]}" inspect --format '{{ .NetworkSettings.IPAddress }}' "${KUBE_RSYNC_CONTAINER_NAME}")
624+
container_ip=$("${DOCKER[@]}" inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}},{{end}}' "${KUBE_RSYNC_CONTAINER_NAME}" | cut -d',' -f1)
625625

626626
# Sometimes we can reach rsync through localhost and a NAT'd port. Other
627627
# times (when we are running in another docker container on the Jenkins

0 commit comments

Comments
 (0)