This project has been deprecated, and replaced by the new SSP operator.
Operator that manages Scheduling, Scale and Performance addons for KubeVirt
- Golang environment and GOPATH correctly set
- Docker (used for creating container images, etc.) with access for the current user
- a Kubernetes 1.13 /OpenShift 4 instance
- Operator SDK
The kubevirt-ssp-operator
requires a Openshift cluster to run properly.
Installation on vanilla kubernetes is technically possible, but many features will not work, so this option
is unsupported.
Using HCO
The Hyperconverged Cluster Operator automatically installs the SSP operator when deploying. So you can just install the HCO on your openshift cluster.
We assume you install the kubevirt-ssp-operator AFTER that kubevirt is succesfully deployed on the same cluster.
You can install the kubevirt-ssp-operator
using the provided manifests.
Assuming you work from the operator source tree root:
cd kubevirt-ssp-operator
Select the namespace you want to install the operator into. If unsure, the kubevirt
namespace is a safe choice:
export NAMESPACE=kubevirt
To avoid incurring in the github API throttling, if you have a github personal access token, you should set it now, by doing something like
export GITHUB_TOKEN=...
Now, run in your repo:
hack/install-operator.sh $NAMESPACE
The generation process requires the operator SDK binary. If present in your path, the process will use that, otherwise it will be downloaded from the release channel. To regenerate the manifests, do in your repo:
make manifests
Find the manifests in the _out
directory once done.
The kubevirt-ssp-operator
provides three way to consume its manifests
- individual manifests files under
deploy
anddeploy/crds
. Please note thatdeploy/olm-catalog
is autogenerated. these are the authoritative manifests that the developers maintain and enhance, for example when they add features. An end user should not, however, consume them directly. If you want to install thekubevirt-ssp-operator
without HCO, please use thehack/install-operator.sh
helper. - CSVs and manifests to be used with HCO. HCO is the preferred way to deploy the
kubevirt-ssp-operator
. We provide CSV file and package file (and everything else), autogenerated on release usingmake manifests
. These manifests are available for download in the release page. This step creates both the unversioned CSV (see below) and the versioned -per release CSV. This is because... - Recent HCO prefer to consume the CSV from the container images, using the
org.kubevirt.hco.csv-generator.v1
LABEL entrypoint. The HCO build process will invoke the script on each container, expecting an up to date, dynamically generated CSV as output, and will take care of merging. In thekubevirt-ssp-operator
case, this is created from the unversioned CSV generated in the step #2 above.
We use traviskube to integrate the functional tests on travis. Make sure you initialize the submodules. In your repo:
git submodule init
To run the functional tests, you will need access to a OKD cluster. The travis script set up from scratch a minishift environment to run the tests into.
Once the environment is set up, you can run the tests by doing, in your repo:
make functests