mirror of https://github.com/k3s-io/k3s
Wait for server to become ready before creating token
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>pull/6944/head
parent
290d7e8fd1
commit
0d416d797d
|
@ -12,6 +12,7 @@ export NUM_AGENTS=1
|
|||
export WAIT_SERVICES="${all_services[@]}"
|
||||
|
||||
agent-pre-hook() {
|
||||
timeout --foreground 2m bash -c "wait-for-nodes $(( NUM_SERVERS ))"
|
||||
local server=$(cat $TEST_DIR/servers/1/metadata/name)
|
||||
docker exec $server k3s token create --ttl=5m --description=Test > $TEST_DIR/metadata/secret
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue