Commit Graph

7509 Commits (eaf20dfa7d0930fea52ffb262ef12cfae42d89f4)

Author SHA1 Message Date
Aleksandr Shmaraiev eaf20dfa7d
Selenium: Add/Delete 'try-catch' according to known issues (#12473) 2019-01-19 22:29:28 +02:00
Aleksandr Shmaraiev cba874fc4f
Selenium: Refactor selenium tests from the 'miscellaneous' package (#12402) 2019-01-18 23:38:35 +02:00
Sergii Leshchenko 375bf0a947
Merge pull request #12335 from sleshchenko/pvcsSupport
Added support of PVC in Kuberentes/OpenShift recipe
2019-01-18 13:39:10 +02:00
Sergii Leshchenko dda3bf28b9 Fix creating of PVCs in per-workspace PVC strategy
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-01-18 12:56:24 +02:00
Sergii Leshchenko 89a80c0021 Adapt PVCStrategy to user-defined PVCs in environment
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-01-18 12:56:24 +02:00
Sergii Leshchenko 18ef415157 Refactor PVCs strategies
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-01-18 12:56:24 +02:00
Sergii Leshchenko 8609447cd2 Add check that all k8s/os environment objects have names
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-01-18 12:56:24 +02:00
Sergii Leshchenko b6c6d78d16 Improve environments pods validations
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-01-18 12:56:24 +02:00
Sergii Leshchenko 7c3f163114 Make K8s/OS infras respect PVCs from recipe
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-01-18 12:56:24 +02:00
Roman Iuvshyn afc3899e12
update typescript dto-pom versions (#12464) 2019-01-18 12:29:24 +02:00
Yevhen Vydolob 10ff71e7ac
Check the latest version of @eclipse-che/api (#12455)
Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
2019-01-17 16:36:19 +02:00
Thomas Mäder 6a73689cfc
Send project events on rename (#12365)
Signed-off-by: Thomas Mäder <tmader@redhat.com>
2019-01-17 13:39:52 +01:00
Sergii Kabashniuk 504808ff15
Merge pull request #12404 from eclipse/gwtidesidecarfix
[CORS] Correctly determine server from which IDE was loaded
2019-01-17 10:03:21 +02:00
Sergii Kabashniuk d43ee12f47 Added logback configuration to reduce log output
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-01-16 16:01:52 +02:00
Sergii Kabashniuk 127a3041ff Used latest Che tomcat
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-01-16 16:01:52 +02:00
Sergii Kabashniuk 84b5a68bd9 Correctly determine server from which IDE was loaded
Provider of "cors.allowed.origins" setting for CORS Filter of WS Agent. Provides the value such  algorithm:
        1. If set che.wsagent.cors.allowed_origins
        2. Server with "ide" attribute in workspace config
        3. Server from url of "ide" link in workspace config
        4. che.api

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-01-16 16:01:52 +02:00
Thomas Mäder e4055918de
Detect Simple Java Projects on Import (#12041)
Signed-off-by: Thomas Mäder <tmader@redhat.com>
2019-01-16 14:58:44 +01:00
Roman Iuvshyn 4ad10f2218
RELEASE: Set next development version (#12441) 2019-01-16 11:51:02 +02:00
Roman Iuvshyn 8e580920b7
add parent version back (#12433)
add parent version back
2019-01-15 18:35:31 +02:00
Masaki Muranaka accb7ded6d Update NodeJS version to 8. (fixes eclipse/che#12340)
Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2019-01-15 16:52:22 +02:00
Masaki Muranaka 88164a6919 Install `epel-release`.
This is required to install `golang`. (fixes eclipse/che#12341)

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2019-01-15 16:52:22 +02:00
Igor Vinokur deef1a5982
CHE-12329 Rework the way of retrieving editor provider by file-type (#12375)
Fixes bug when a maven file-type (without linked editor provider) is registered and another file type for pom.xml files (with linked editor provider) is registered as well, but when the pom.xml file is opened default editor provider is returned. The fix iterates registered editor providers if the the default provider is registered for the found file type.
2019-01-15 16:20:08 +02:00
Angel Misevski f50d115a71 Copy resources in KubernetesEnvironment constructor instead of reusing
Create a copy of the Pods and Deployments map when creating a
KubernetesEnvironment, rather than reusing the objects that are passed
in.

Fixes an issue where it's not possible to use a KubernetesEnvironment
created from another, as addPod() would try to add to an immutable map.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-01-15 13:33:42 +02:00
Anna Shumilova 645962495c Add workspace confing autosave
Signed-off-by: Anna Shumilova <ashumilo@redhat.com>
2019-01-15 12:58:26 +02:00
Thomas Mäder 66ac77165e
Update to lsp4j 0.6.0 (#12399)
* Adapt to lsp4j 0.6.0
2019-01-15 09:58:16 +01:00
Oleksii Orel 61bc51b5b1
[WIP]Upgrade the version of theia-generator version to 0.0.1-1547456396 (#12417)
* Upgrade the version of theia-generator

Signed-off-by: Oleksii Orel <oorel@redhat.com>

* fix e2e test

Signed-off-by: Oleksii Orel <oorel@redhat.com>
2019-01-14 18:01:54 +02:00
Oleksandr Garagatyi acdf32a540 Update brokers to the latest version
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-01-14 13:52:03 +02:00
Masaki Muranaka 07ceab7754 Remove redundant elements (<groupId> and <version>) (#12406)
Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2019-01-14 13:07:42 +02:00
Vitaliy Gulyy bcb5eac54a Include new Factory an Containers plugins (#12396)
Signed-off-by: Vitaliy Gulyy <vgulyy@redhat.com>
2019-01-13 17:30:58 +02:00
Max Shaposhnik c44e1bff66
Support of kubernetes/openshift tools in Factory (#12353) 2019-01-11 16:27:12 +02:00
Oleksandr Garagatyi 7c35cffc4c
Fix NPE on recipe parsing (#12383)
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-01-11 13:58:24 +02:00
Oleksandr Garagatyi c134364ce1 Ignore .factorypath files
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-01-11 11:17:45 +02:00
Yevhen Vydolob 5ac5e46ee2
Generate and publish TS DTO interfaces (#12293)
#11306 generate and publish TS DTO interfaces

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
2019-01-11 10:51:56 +02:00
Oleksandr Garagatyi 72065b582f
Add binding of VS Code extension broker for Che 7 (#12149)
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-01-10 21:09:40 +02:00
Lukas Krejci 316272e35f
Merge pull request #12368. Fixes #12242
Add workspace failure count metric.
2019-01-10 14:38:13 +01:00
Lukas Krejci d9c603d4ad Fix the scope of che-core-api-dto. It is only required in tests.
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-10 09:39:37 +01:00
Mykhailo Kuznietsov 3574455d8e
Add filter to track 5xx errors for Prometheus (#12284) 2019-01-10 09:37:26 +02:00
Lukas Krejci 551ff2b0e1 Add workspace failure count metric.
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-09 17:52:20 +01:00
Lukas Krejci 43da30e0b6
Merge pull request #12270. Fixes #12092 2019-01-09 17:51:21 +01:00
Lukas Krejci 69ff7a83ac
Use the names of the enums instead of their ordinals when storing them to DB (#12222)
* Use the names of the enums instead of their ordinals when storing them
to varchar columns in DB.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-09 16:07:24 +01:00
Lukas Krejci 3fd7af575b Test that activity manager relays the results from the DAO when
counting workspaces in a status.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-09 11:00:48 +01:00
Lukas Krejci c8effa7c11 Reformulate the tests in a more given-when-then style.
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-09 10:56:11 +01:00
Lukas Krejci ade67cb7a0 Use a more appropriate gauge builder method.
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-09 10:42:19 +01:00
Sergii Leshchenko b0754087f5
Added an ability to deploy Che Plugin Registry with argument for deploy_che.sh script (#12310) 2019-01-09 11:26:49 +02:00
Angel Misevski 1ffb78c177 Add test cases for Deployments supprt
Add test cases for
- KubernetesInternalRuntime, when creating from deployments
- UniqueNamesProvisioner, to ensure deployments and configmaps are
  handled correctly

Signed-off-by: Angel Misevsk <amisevsk@redhat.com>
2019-01-08 19:27:39 -05:00
Angel Misevski a1417ac9c6 Simplify KubernetesEnvironment#addPod() slightly + cleanup
Remove podName parameter from addPod method and simply get it from the
pod's metadata.

Additional cleanup and documentation changes:

- Make some log messages level 'info' instead of 'debug'
- Modify argument order in messages to to make more sense
- Add docs for KubernetesEnvironment methods about how/when pods map can
  be modified
- Fix issue where pods referencing nonexistent configmaps would emit
  unreadable error messages due to configmap renaming.
- Clean up code according to PR Quality Review

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-01-08 19:27:39 -05:00
Angel Misevski e0f774c456 Add user dashboard-side validation for deployments/configmaps in recipes
Add validation and processing on the dashboard side for recipes
containing deployments and/or configmaps. This allows users to create
new stacks using these items in recipes.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-01-08 19:27:39 -05:00
Angel Misevski 129788ba31 Cleanup related to Deployments support
- Rename method in KubernetesInternalRuntime to make its meaning more
  clear
- Fix some documentation issues
- Refactor KubernetesEnvironment to set podData in constructor instead
  of through builder, avoiding inconsistencies in podData when using
  constructor directly.
- Rename KubernetesEnvironment#getPodData to getPodsData to better
  represent the data that is returned
- Fix issue where pod-based recipes were not correctly getting
  deployment name label and so were failing to start
- Fix issue where deployments were not given a unique name by
  provisioner.

Signed-off-by: Angel Misevsk <amisevsk@redhat.com>
2019-01-08 19:27:39 -05:00
Angel Misevski e52d35e5a7 Add ConfigMap support in Kubernetes/OpenShift recipes
Allow configmaps to be specified in Kubernetes/OpenShift recipes. Also
changes UniqueNamesProvisioner to rewrite configmap names across the
environment to avoid name collisions.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-01-08 19:27:39 -05:00
Angel Misevski bc5c90a754 Fix tests to accomodate support of deployments in k8s/OS recipes
Changes necessary to make tests compile and pass after introduction of
deployments into Kubernetes/OpenShift recipes.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-01-08 19:27:39 -05:00