mirror of
https://github.com/siderolabs/talos.git
synced 2025-11-09 04:41:13 +01:00
This adds sonobuoy's quick mode test to basic integration. Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
42 lines
931 B
Bash
Executable File
42 lines
931 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eou pipefail
|
|
|
|
TMP="/tmp/e2e"
|
|
TALOS_IMG="docker.io/autonomy/talos:${TAG}"
|
|
|
|
export TALOSCONFIG="${TMP}/talosconfig"
|
|
|
|
case "${CI:-false}" in
|
|
true)
|
|
ENDPOINT="docker"
|
|
;;
|
|
*)
|
|
ENDPOINT="127.0.0.1"
|
|
;;
|
|
esac
|
|
|
|
case $(uname -s) in
|
|
Linux*)
|
|
OSCTL="${PWD}/${ARTIFACTS}/osctl-linux-amd64"
|
|
INTEGRATION_TEST="${PWD}/${ARTIFACTS}/integration-test-linux-amd64"
|
|
;;
|
|
Darwin*)
|
|
OSCTL="${PWD}/${ARTIFACTS}/osctl-darwin-amd64"
|
|
INTEGRATION_TEST="${PWD}/${ARTIFACTS}/integration-test-darwin-amd64"
|
|
;;
|
|
*)
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
mkdir -p "${TMP}"
|
|
|
|
"${OSCTL}" cluster create --name basic-integration --image "${TALOS_IMG}" --masters=3 --mtu 1440 --cpus 4.0 --wait --endpoint "${ENDPOINT}"
|
|
|
|
"${INTEGRATION_TEST}" -test.v -talos.osctlpath "${OSCTL}" -talos.k8sendpoint "${ENDPOINT}:6443"
|
|
|
|
mkdir -p ${TMP}/${TALOS_PLATFORM}
|
|
"${OSCTL}" kubeconfig ${TMP}/${TALOS_PLATFORM}
|
|
./hack/test/conformance.sh
|