- Build:
WHAT=machine-config-operator ./hack/build-go.sh
- Design doc
- Build:
WHAT=machine-config-server ./hack/build-go.sh
- Design doc
- Build:
WHAT=machine-config-daemon ./hack/build-go.sh
- Design doc
WHAT=machine-config-controller ./hack/build-go.sh
Tests can be executed on a per package basis with go test
like so:
go test -v github.com/openshift/machine-config-operator/pkg/apis
All tests can be executed with:
go test -v ./...
NOTE: To build images you will need podman
installed.
Images can be built locally via the hack/build-image.sh
script. This script uses the
WHAT
variable similarly to the hack/build-go.sh
script.
$ ./hack/build-image.sh
ERROR: Note: Building unprivileged may fail due to permissions
ERROR: WHAT must be set to one of the following:
ERROR: - all
ERROR: - machine-config-controller
ERROR: - machine-config-daemon
ERROR: - machine-config-operator
$ WHAT=machine-config-daemon ./hack/build-image.sh
[...]