mirror of
https://github.com/rancher/steve.git
synced 2025-05-04 05:56:42 +00:00
This implements the Imperative API that is served at /ext with Steve. The imperative API is compatible with Kubernetes' API server and will be used as an extension API server.
14 lines
397 B
Bash
14 lines
397 B
Bash
#!/bin/bash
|
|
|
|
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 list -m all | grep 'k8s.io/client-go' | cut -d ' ' -f 2 | cut -d '.' -f 2)
|
|
version="1.$minor.x"
|
|
|
|
export KUBEBUILDER_ASSETS=$(setup-envtest use -p path "$version")
|
|
go test ./...
|