-
Bug
-
Resolution: Done
-
Critical
-
3.2.0.GA
-
None
-
False
-
None
-
False
-
Release Notes
-
-
Known Issue
-
Done
-
Workaround Exists
-
-
- When trying to run a workspace from factory from Bitbucket.org repo using devfile apiversion 1.0.0, the process fails with an error:
dashboard start workspace page
Unable to create devworkspace: DevWorkspace.workspace.devfile.io "public-repo-testname" is invalid: [<nil>: Invalid value: "": "spec.template.projects[0]" must validate one and only one schema (oneOf). Found none valid, spec.template.projects[0].git: Required value]
- Tested on OCP 4.11 PSI infrastructure
DS 3.2.0.RC-10-12
Index image v4.11: brew.registry.redhat.io/rh-osbs/iib:337296 - E.g. factory link:
https://devspaces.apps.ocp411-oshmara.crw-qe.com/f?url=https://bitbucket.org/ashmaraev/public-bb-repo/src/master/ - Console browser devworkspace:
method:POST/devworkspace
{ "devworkspace": { "apiVersion": "workspace.devfile.io/v1alpha2", "kind": "DevWorkspace", "metadata": { "name": "public-repo-testname", "namespace": "admin-devspaces", "annotations": { "che.eclipse.org/devfile-source": "url:\n location: 'https://bitbucket.org/ashmaraev/public-bb-repo/src/master/'\nfactory:\n params: 'url=https://bitbucket.org/ashmaraev/public-bb-repo/src/master/'\n", "che.eclipse.org/last-updated-timestamp": "2022-10-13T14:01:46.560Z", "che.eclipse.org/che-editor": "eclipse/che-theia/latest" }, "labels": {}, "uid": "" }, "spec": { "started": false, "routingClass": "che", "template": { "components": [], "attributes": { "metadata-name-field": "generateName", "metadata-name-original-value": "public-repo-testname", "dw.metadata.annotations": { "che.eclipse.org/devfile-source": "url:\n location: 'https://bitbucket.org/ashmaraev/public-bb-repo/src/master/'\nfactory:\n params: 'url=https://bitbucket.org/ashmaraev/public-bb-repo/src/master/'\n", "che.eclipse.org/last-updated-timestamp": "2022-10-13T14:01:46.560Z", "che.eclipse.org/che-editor": "eclipse/che-theia/latest" }, "che-theia.eclipse.org/sidecar-policy": "mergeImage" }, "projects": [ { "attributes": {}, "name": "public-bb-repo" } ], "commands": [] } } } }
- Note: if use devfile.yaml with schemaVersion: 2.1.0 a workspace is run properly
- relates to
-
CRW-3417 BitBucket repo does not work with factory link
- Closed
- links to