Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dind: only wait for Ready non-sdn nodes
The 'wait-for-cluster' command of hack/dind-cluster.sh was previously evaluating all nodes when determining whether the cluster's nodes were seen to be 'Ready' and not excluding 'NotReady'. The command now excludes the sdn node, whose state is not relevant for determining cluster readiness, and ensures that NotReady nodes are properly excluded.
- Loading branch information
Showing
2 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
|
||
function foo() { | ||
local my_file=$1 | ||
echo "running ${my_file}" | ||
return 1 | ||
} | ||
|
||
function cleanup() { | ||
echo 'error! cleaning up' | ||
} | ||
|
||
trap "exit" INT TERM | ||
trap "cleanup" EXIT | ||
|
||
foo /bar | ||
foo /tmp || true | ||
|
||
|
||
echo $(basename ${BASH_SOURCE}) |