You will need a working OCM Agent image that the ocm-agent-operator will deploy.
Follow the build instructions of OCM Agent to build your own OCM Agent image.
- Apply the CRD from the
deploy/crdsdirectory.
oc create -f deploy/crds/ocmagent.managed.openshift.io_ocmagents.yaml
-
Edit the
test/deploy/50_ocm-agent-operator.Deployment.yamlfile to set theocm-agent-operatorimage to the image URL you wish to test with. -
Apply all of the resources within the
test/deploydirectory.
find test/deploy -type f -name '*.yaml' -exec oc create -f {} \;
- Login to the cluster as cluster admin using
oc logincommand. - Run
make runto deploy local changes