Update README.md to include steps to install kubebuilder

kubebuilder has to be installed in order to run the tests
This commit is contained in:
Rick Bartra 2020-12-02 17:40:27 +00:00
parent 057669f8ef
commit 08f7675e81

View File

@ -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.