cluster-operator icon indicating copy to clipboard operation
cluster-operator copied to clipboard

e2e: Run operator locally with go run

Open darkowlzz opened this issue 6 years ago • 3 comments

This runs the e2e operator-sdk tests (non-OLM) with go run, instead of running in a container. Container image is built only for OLM based test setup. Also, uses the new kind load command to upload the container image from host to a KinD environment.

darkowlzz avatar Oct 05 '19 09:10 darkowlzz

There may be an issue when running the operator locally which results in the node-controller failing to update the node labels.

darkowlzz avatar Oct 05 '19 09:10 darkowlzz

LGTM but failing test?

croomes avatar Oct 07 '19 10:10 croomes

When the operator is run this way, it's operating from outside the KinD environment. The operator controllers cannot connect to the storageos server running inside the KinD environment. This works fine for openshift test job as openshift is deployed directly on the host. A workaround for this would be to create a proxy to storageos server inside KinD from the host. We already do something similar in the e2e test for node controller tests. We can move the proxy creation before running any test.

darkowlzz avatar Oct 08 '19 16:10 darkowlzz