Skip to content

Commit

Permalink
Merge pull request #385 from openshift-cherrypick-robot/cherry-pick-3…
Browse files Browse the repository at this point in the history
…55-to-release-4.12

[release-4.12] OCPBUGS-19933: update-node-resolver.sh: Check for errors from >>
  • Loading branch information
openshift-ci[bot] committed Oct 10, 2023
2 parents d65d051 + b4a4521 commit ffebbf4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion assets/node-resolver/update-node-resolver.sh
Expand Up @@ -48,11 +48,17 @@ while true; do
fi

# Append resolver entries for services
rc=0
for svc in "${!svc_ips[@]}"; do
for ip in ${svc_ips[${svc}]}; do
echo "${ip} ${svc} ${svc}.${CLUSTER_DOMAIN} # ${OPENSHIFT_MARKER}" >> "${TEMP_FILE}"
echo "${ip} ${svc} ${svc}.${CLUSTER_DOMAIN} # ${OPENSHIFT_MARKER}" >> "${TEMP_FILE}" || rc=$?
done
done
if [[ $rc -ne 0 ]]; then
sleep 60 & wait
continue
fi


# TODO: Update /etc/hosts atomically to avoid any inconsistent behavior
# Replace /etc/hosts with our modified version if needed
Expand Down
8 changes: 4 additions & 4 deletions pkg/manifests/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ffebbf4

Please sign in to comment.