k3s/conformance/run-test.sh
Paulo Gomes ee007bc7cf
Bump deps: trivy, sonobuoy, dapper (#6807)
- trivy v0.36.1
- sonobuoy v0.56.14
- golangci-lint v1.50.1
- gopls v0.11.0
- dapper v0.6.0
- golang v1.19.5

Signed-off-by: Paulo Gomes <paulo.gomes@suse.com>
2023-02-06 11:25:24 -08:00

17 lines
392 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/mirrored-sonobuoy-sonobuoy:v0.56.14
sleep 15
sonobuoy logs -f