mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
2ac8df3602
* Remove sudo commands from integration tests Signed-off-by: Derek Nola <derek.nola@suse.com> * Added cleanup fucntion Signed-off-by: Derek Nola <derek.nola@suse.com> * Implement better int cleanup Signed-off-by: Derek Nola <derek.nola@suse.com> * Rename test utils Signed-off-by: Derek Nola <derek.nola@suse.com> * Enable K3sCmd to be a single string Signed-off-by: Derek Nola <derek.nola@suse.com> * Removed parsePod function Signed-off-by: Derek Nola <derek.nola@suse.com> * codespell Signed-off-by: Derek Nola <derek.nola@suse.com> * Revert startup timeout Signed-off-by: Derek Nola <derek.nola@suse.com> * Reorder sonobuoy tests, drop concurrent tests to 3 Signed-off-by: Derek Nola <derek.nola@suse.com> * Disable etcd Signed-off-by: Derek Nola <derek.nola@suse.com> * Skip parallel testing for etcd Signed-off-by: Derek Nola <derek.nola@suse.com>
16 lines
298 B
Bash
16 lines
298 B
Bash
#!/bin/bash
|
|
|
|
. ./scripts/test-setup-sonobuoy
|
|
|
|
export NUM_SERVERS=1
|
|
export NUM_AGENTS=1
|
|
export SERVER_1_ARGS="--cluster-init"
|
|
|
|
server-post-hook() {
|
|
if [ $1 -eq 1 ]; then
|
|
local url=$(cat $TEST_DIR/servers/1/metadata/url)
|
|
export SERVER_ARGS="--server $url"
|
|
fi
|
|
}
|
|
export -f server-post-hook
|