Closed groeges closed 4 years ago
This happens because before creating Knative Service, the operator cleans up non-Knative resources such as route
, imagestream
, deployment
and etc. Since vanilla k8s, doesn't include OpenShift's specific resources, the client.delete
call fails.
Workaround: Install route
/imagestream
CRDs (using oc apply -f ...
) to pass the error: openshift-crds.zip
We discussed this in today's scrum and concluded that the operator should check whether the CRD is available on the environment before attempting to delete a the corresponding CR. Similar check is already done at creation time.
Fix was delivered into 0.5.0.
Bug Report
When trying to deploy an Appsody app to k8s (with knative / istio installed ) and the app-deploy.yaml is configured to use
createKnativeServer: true
the app is not deployed and the operator has an error: no matches for kind "Route" in version "route.openshift.io/v1"What did you do?
appsody init incubator/java-microprofile
createKnativeServer: true
appsody deploy
What did you expect to see?
Expected
appsody deploy
to succeed and the app to be deployed and able to run it.What did you see instead?
appsody deploy
gave errors as it couldnt find the deployed appkubectl get AppsodyApplication test-mp
gave the output below showing the statusmessage: no matches for kind "Route" in version "route.openshift.io/v1"
:A clear and concise description of what you expected to happen (or insert a code snippet).
Environment
Possible solution
Additional context
Add any other context about the problem here.