OpenShiftConnector.inspectImage() uses pods to figure out a workspaces
docker image. Previously, this was not a problem as it would match
the imagestream tag we create earlier. However, in OpenShift 3.6 and
higher, it seems like pods created by deployments use the sha256 of
the image as an identifier, and so this fails. This means that
workspaces fail to start due to imagestream not found.
To resolve this issue, we instead get the image name through the
deployment, which does have the correct value.
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
* CHE-5714:Improving search results:
line numbers are shown for matches
multiple matches in the same file are shown individually
when you click on a search result, the editor loads the file AND jumps straight to the matching line with all instances of the search term already highlighted
Signed-off-by: Vitalii Parfonov <vparfonov@redhat.com>
* CHE-5714:Improving search results:
line numbers are shown for matches
multiple matches in the same file are shown individually
when you click on a search result, the editor loads the file AND jumps straight to the matching line with all instances of the search term already highlighted
Signed-off-by: Vitalii Parfonov <vparfonov@redhat.com>
* Code cleanup
Signed-off-by: Vitalii Parfonov <vparfonov@redhat.com>
* Create routes in openshift with the same pattern than the urls provided by the naming strategy.
Also it will be able to handle service name described through labels on Docker image.
It means that for one image 8080 port can be tomcat, but for another image it can be named "vertx" or default value if not specified
Change-Id: Ie8e0a09d0be8f6d042f542a76c146e2bbe266fc7
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
* Add document changing listener support
Signed-off-by: Thomas Mäder <tmader@redhat.com>
* Use document changin notification to compute correct didChange
parameters
Signed-off-by: Thomas Mäder <tmader@redhat.com>
* Make sure to use the proper document instance.
Signed-off-by: Thomas Mäder <tmader@redhat.com>
* Renamed DocumentChangeEvent->DocumentChangedEvent
Signed-off-by: Thomas Mäder <tmader@redhat.com>
Each pod has a dedicated folder matching the workspace id
for the project's source, it is currently using :
/projects ---> <PV>/<workspace-name>
and for the logs it's now using as well
/workspace-logs ---> <PR>/<workspace-name>-logs/
example : /workspace-logs/dev-machine-ws-agent/logs/catalina.log for the log of the dev-machine workspace agent.
Change-Id: I2b9d533ba3df2cf55857d8c30d2de5df463a5902
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>