mirror of
https://github.com/krkn-chaos/krkn.git
synced 2026-02-14 18:10:00 +00:00
* Functional Tests porting to kubernetes Signed-off-by: Tullio Sebastiani <tsebasti@redhat.com>
19 lines
304 B
Bash
19 lines
304 B
Bash
ERRORED=false
|
|
|
|
function finish {
|
|
if [ $? -eq 1 ] && [ $ERRORED != "true" ]
|
|
then
|
|
error
|
|
fi
|
|
}
|
|
|
|
function error {
|
|
echo "Error caught."
|
|
ERRORED=true
|
|
}
|
|
|
|
function get_node {
|
|
worker_node=$(kubectl get nodes --no-headers | grep worker | head -n 1)
|
|
export WORKER_NODE=$worker_node
|
|
}
|