https://github.com/oVirt/cluster-api-provider-ovirt
Implementation of the oVirt provider for the [cluster-api project] version v1beta
using openshift/cluster-api-provider api, which implements the machine actuator.
Fast development cycle is to build the binarties, manager and machine-controller-manager
and run those against a running cluster kubeconfig.
The following make targets are provided:
# build the binary
make build
# build the image
make imagesOn any changes in the specification, run
make generateto automatically generate the new CustomResourceDefinitions for oVirt.
Run all tests together via
make test
Unit tests are marked with the build tag
//go:build unitand can be run via
make test-unitFunctional (or integration) tests for the cluster-api-provider-ovirt are based on [envtest] instead of a real cluser. For more information, refer to The Cluster API Book on integration tests.
The necessary tooling can be fetched and installed via
sh ./hack/envtest-tools.sh && fetch_tools && setup_envFunctional (or integration) tests are marked with the build tag
//go:build functionaland can be run via
make test-functionalIn contrast to local unit testing and functional testing, building and deploying the changed cluster-api-provider-ovirt to a running OpenShift cluster helps manually verifying the expected behavior of the component end to end.
For detailed instructions on how to exchange the predefined provider see ./docs/custom-capo.md.
$ export KUBECONFIG=path/to/kubecofig
$ bin/manager &
$ bin/machine-controller-manager --namespace openshift-machine-api --metrics-addr=:8888 &