k3s/e2e/run-test.sh
Darren Shepherd d6c5f6b995 Add e2e tests
2019-02-28 10:31:59 -07:00

17 lines
331 B
Bash
Executable File

#!/bin/bash
set -e -x
while [ ! -e /etc/rancher/k3s/k3s.yaml ]; do
echo waiting for config
sleep 1
done
mkdir -p /root/.kube
sed 's/localhost/server/g' /etc/rancher/k3s/k3s.yaml > /root/.kube/config
export KUBECONFIG=/root/.kube/config
cat /etc/rancher/k3s/k3s.yaml
cat $KUBECONFIG
sonobuoy run
sleep 15
sonobuoy logs -f