devfile
devfile copied to clipboard
Mongo-controller is invalid
The CodeReady Workspaces 2.0 docs refer to this git repo several times but the repo does not seem to work in several places:-
https://access.redhat.com/documentation/en-us/red_hat_codeready_workspaces/2.0/html/end-user_guide/workspaces-overview#importing-a-kubernetes-application-into-a-workspace
- For example in section 3.7 it suggests running this script sample:
$ node=https://raw.githubusercontent.com/redhat-developer/devfile/master/samples/web-nodejs-with-db-sample/nodejs-app.yaml &&
mongo=https://raw.githubusercontent.com/redhat-developer/devfile/master/samples/web-nodejs-with-db-sample/mongo-db.yaml &&
oc apply -f ${mongo} &&
oc apply -f ${node}
This fails against OCP 4.2.7 with the following output:
service/mongo created persistentvolumeclaim/mongo-persistent-storage created The Deployment "mongo-controller" is invalid:
- spec.selector: Required value
- spec.template.metadata.labels: Invalid value: map[string]string{"name":"mongo"}:
selectordoes not match templatelabels
- In addition the Readme file for this repo suggests I can launch the devfile directly from the CodeReady or Che url as a factory and this also fails when CodeReady is installed on OCP 4.2.7:
http://codeready-codeready.apps.clusterXXXXXX.example.opentlc.com/f?url=https:%2F%2Fraw.githubusercontent.com%2Fredhat-developer%2Fdevfile%2Fmaster%2Fsamples%2Fweb-java-spring-petclinic%2Fdevfile.yaml
Failed to pull image "registry.devshift.net/che/centos_jdk8": rpc error: code = Unknown desc = pinging docker registry returned: Get https://registry.devshift.net/v2/: dial tcp 8.43.84.245:443: connect: connection refused Error: Failed to run the workspace: "Unrecoverable event occurred: 'Failed', 'Failed to pull image "registry.devshift.net/che/centos_jdk8": rpc error: code = Unknown desc = pinging docker registry returned: Get https://registry.devshift.net/v2/: dial tcp 8.43.84.245:443: connect: connection refused', 'workspacer0c0d2km9qz5pwgo.dev-7b7544bb99-5glbm'"