openshift-labs / lab-build-your-own-operator

Build your own Kubernetes Operator
Apache License 2.0
7 stars 5 forks source link

Error Starting local Podset Operator test (crash) #11

Open ryanj opened 5 years ago

ryanj commented 5 years ago

In the "Start the Operator" step of the Podset Operator section, the user is asked to test their local operator code by running:

operator-sdk up local --namespace myproject

Expected: Watch to see if the podset operator is started. Try listing pods or deployments related to the operator for the initial test. Then load a CR and watch for pods that are created by the operator code.

Actual: Crash / closed connection. Users can restart the workshop by clicking in the top right corner to open the nav menu, then select "Restart Session".

ryanj commented 5 years ago

This is the last big step in the podset operator section. High priority bug

madorn commented 5 years ago

I'm seeing this issue and also seeing signal: killed in the middle of runnning operator-sdk add api --api-version=app.example.com/v1alpha1 --kind=PodSet.

Golang version within terminal dashboard pod is go1.11.5, this is below the prereq.

Before continuing to troubleshoot further should we remove the package here and manually fetch/install/setup go1.12.5 in the build file ?

ryanj commented 5 years ago

cc @jorgemoralespou @GrahamDumpleton

GrahamDumpleton commented 5 years ago

It is installed from the .workshop/build script. Update to whatever tool versions you need.

madorn commented 5 years ago

See #13.

madorn commented 5 years ago

14 should resolve the issues with the operator-sdk crashing.

jorgemoralespou commented 5 years ago

Both PR are merged, so after re testing this one should be closed

madorn commented 5 years ago

@jorgemoralespou thanks Jorge. tested and looks good.