k3s/e2e/run-test.sh
Brad Davidson fcb864a5e2
Update sonobuoy version and use rancher mirrored image (#2482)
* Update sonobuoy version
* Use upstream tag for Kubernetes version instead of replacement tag
    Allows building against upstream alpha/beta/rc releases
* Use env variable for sonobuoy version
* Bump version for QA e2e tests

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2020-11-06 13:33:31 -08:00

17 lines
382 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 --sonobuoy-image=rancher/sonobuoy-sonobuoy:v0.19.0
sleep 15
sonobuoy logs -f