talos/hack/test/basic-integration.sh
Andrew Rynhard 99cb06d9c7
chore: update floating IPs for E2E test (#762)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-06-21 23:05:17 -07:00

20 lines
321 B
Bash
Executable File

#!/bin/bash
set -eou pipefail
export TMP="$(mktemp -d)"
export OSCTL="${PWD}/build/osctl-linux-amd64"
export TALOSCONFIG="${TMP}/talosconfig"
export KUBECONFIG="${TMP}/kubeconfig"
cleanup() {
${OSCTL} cluster destroy --name integration
rm -rf ${TMP}
}
trap cleanup EXIT
./hack/test/osctl-cluster-create.sh
exit 0