diff --git a/README.md b/README.md index 1ca62ed..e6d7987 100644 --- a/README.md +++ b/README.md @@ -116,5 +116,22 @@ Use kubectl apply to deliver SIP CRs and BaremetalHost CRDs to kubernetes cluste ## Testing +Need kubebuilder installed to run tests. + +#### Installation of kubebuilder: + +``` +# os=$(go env GOOS) +# arch=$(go env GOARCH) + +download kubebuilder and extract it to /tmp +# curl -L https://go.kubebuilder.io/dl/2.3.1/${os}/${arch} | tar -xz -C /tmp/ + +move to a long-term location and put it on your path +(you'll need to set the KUBEBUILDER_ASSETS env var if you put it somewhere else) +# sudo mv /tmp/kubebuilder_2.3.1_${os}_${arch} /usr/local/kubebuilder +# export PATH=$PATH:/usr/local/kubebuilder/bin +``` +Run the tests: Run `make test` to execute a suite of unit and integration tests against the SIP operator.