Skip to content

Commit

Permalink
Output file_written flag in log for visibility.
Browse files Browse the repository at this point in the history
Should be a very lightweight action.
  • Loading branch information
jingyuanliang committed Sep 28, 2024
1 parent 3315513 commit ccd6adc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/install-cni.sh
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,8 @@ fi
while true; do
log "Checking Cilium health allowing retries for up to ${cilium_watchdog_failure_retry}s."
if cilium_health_check "${cilium_watchdog_failure_retry}"; then
log "Cilium healthz reported success; writing CNI config if never written or not already there then wait for ${cilium_watchdog_success_wait}s."
if [[ ${file_written} != "true" ]] || [[ ! -f "${output_file}" ]]; then
log "Cilium healthz reported success; writing CNI config if never written (written: ${file_written}) or not already there then wait for ${cilium_watchdog_success_wait}s."
if [[ "${file_written}" != "true" ]] || [[ ! -f "${output_file}" ]]; then
write_file "${output_file}" "${cni_spec}"
file_written=true
fi
Expand Down

0 comments on commit ccd6adc

Please sign in to comment.