talos/hack/test/basic-integration.sh
Andrew Rynhard d82444a42d
chore: revert #816 (#829)
This reverts commit 11f8392e53986da6c124037ffab06064ec04aedd.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-07-04 08:43:34 -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