mirror of
https://github.com/rancher/steve.git
synced 2025-09-13 22:09:31 +00:00
[v0.3] Migrate SQL cache to Steve (#474)
* Migrate SQLcache to Steve * Fix imports * go mod tidy * Fix lint errors * Remove lasso SQL cache mentions * Fix more CI lint errors * fix goimports Signed-off-by: Silvio Moioli <silvio@moioli.net> * Fix more linting errors * More lint fix * Add envtest support --------- Signed-off-by: Silvio Moioli <silvio@moioli.net> Co-authored-by: Silvio Moioli <silvio@moioli.net>
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
go test ./...
|
||||
if ! command -v setup-envtest; then
|
||||
echo "setup-envtest is required for tests, but was not installed"
|
||||
echo "see the 'Running Tests' section of the readme for install instructions"
|
||||
exit 127
|
||||
fi
|
||||
|
||||
minor=$(go mod graph | grep ' k8s.io/client-go@' | head -n1 | cut -d@ -f2 | cut -d '.' -f 2)
|
||||
version="1.$minor.x"
|
||||
|
||||
export KUBEBUILDER_ASSETS=$(setup-envtest use -p path "$version")
|
||||
go test ./...
|
||||
|
Reference in New Issue
Block a user