Commit Graph

749 Commits (5ac5e46ee2954fdff7a32fa5df2923e99744efb7)

Author SHA1 Message Date
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 d8a87ba1b1 Only install the wsmaster metrics module when metrics are enabled.
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-08 08:52:56 +01:00
Lukas Krejci 7f38fc4e91 Sorting the poms.
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-08 08:52:35 +01:00
Lukas Krejci dec24d8ac4 Merge remote-tracking branch 'upstream/master' into workspace-prometheus-metrics
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-07 22:27:22 +01:00
Lukas Krejci 68d2788b18 Move the wsmaster metrics into a separate module so that
the metrics-related functionality doesn't "infect" the rest of the codebase

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-01-07 15:34:33 +01:00
Sergii Leshchenko a64f03f665 Add periodical job that stops Runtimes without existing pods 2018-12-28 10:32:02 +02:00
Max Shaposhnik cea3f482db
Factory support of devfile 2018-12-26 16:20:28 +02:00
Roman Iuvshyn b872b317cb
RELEASE: Set next development version (#12277) 2018-12-26 13:04:51 +02:00
Oleksandr Garagatyi 4e367f201d
Use init broker to remove plugins files on brokering (#12163)
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-12-26 12:05:52 +02:00
Lukas Krejci 90903645ee Add an ability to get workspaces ids by status and threshold timestamp (#12177)
It includes:
- reworking Workspace Activity API to store timestamps of each status changes;
- add REST API endpoint to get workspaces ids by status and threshold timestamp;
2018-12-22 17:19:38 +02:00
Mykhailo Kuznietsov 69288516c8
Upgrade Tomcat and change default CORS configuration (#12144) 2018-12-22 10:56:27 +02:00
Valeriy Svydenko 90b5bdef23
Remove maven server (#12235)
Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
2018-12-21 17:16:28 +02:00
Sergii Leshchenko cbb54e8088 Refactor and improve pre workspace PVC strategy 2018-12-14 10:29:12 +02:00
Sergii Leshchenko 111183fb7b Make Workspace Agent use custom java trust store if there is mounted CA certificate file 2018-12-11 15:42:43 +02:00
Mykhailo Kuznietsov b7e1918e32
Upgrade dependencies (#11944) 2018-12-11 11:34:48 +02:00
Oleksandr Garagatyi 2c1740eab2
Use latest plugin brokers (#12141)
Changes brokers configuration to use the latest version 
of Che plugin broker and Theia plugin broker instead of
Theia remote plugin broker.
Fixes start of workspace when broker sent sidecar config 
with uppercase chars.
2018-12-10 21:02:00 -07:00
Max Shaposhnik 3a14bacda1
Devfile local features implenentation with schema validation and automated model build. 2018-12-06 16:19:21 +02:00
Roman Iuvshyn 45490d2a3b
RELEASE: Set next development version (#12115) 2018-12-05 18:33:02 +02:00
Mykhailo Kuznietsov 3d366a1c19
Add ability to change CORS configuration on Che Server through env vars (#12046) 2018-12-04 14:56:38 +02:00
Sergii Kabashniuk da3eefe237
Metrics POC (#11990)
With CHE_METRICS_ENABLED env variable enable Prometheus metrics endpoint
2018-11-27 23:47:24 +02:00
Sergii Leshchenko 4edd9190bf Make k8s/OS internal runtime return commands 2018-11-27 09:19:28 +02:00
Sergii Leshchenko 0ff2a2ee0e Update Che Plugin Broker to v0.4.0 version
The reason why it is updated: ChePluginBroker:v0.4.0 publishes id
and version of plugins
2018-11-27 09:19:23 +02:00
Masaki Muranaka d309ef4b83 Remove redundant <version> elements. (#12023)
As they will be inherited from `parent.version`.

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2018-11-25 21:17:08 +02:00
Angel Misevski fa2a2dffeb Add property to control ping interval in ServersChecker
Add property `che.workspace.server.ping_interval_milliseconds` to
control ping interval when checking that servers are running during
workspace start.

Default value is 3000 ms (3 seconds) which is the current hardcoded
interval.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2018-11-22 11:28:34 -05:00
Oleksandr Garagatyi aaa8f424cd
Make a workspace run without any user env (#11890)
Allows running Che 7 workspace without any user environment but with Che 7 tooling set.
Workspace without environment has an empty list of environments and null value in `defaultEnv` field.
Field `activeEnv` is supposed to be `null` too.
What is changed:
- Migration of DB
- make defaultEnv nullable
- remove env_name from runtimes primary key
- make env_name in runtimes nullable
- Make code respect the fact that there are workspaces with no env
- settings API that returns the list of supported environment types returns no-environment type that - indicates that infrastructure support workspace with no environment at all.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-11-21 16:39:54 +02:00
Roman Iuvshyn 99afaef87f
RELEASE: Set next development version (#11930) 2018-11-14 12:29:03 +02:00
Sergii Kabashniuk 8a38002dd9
Basic tracing support for OpenShift (#11844)
Basic tracing support for OpenShift (#11844)
2018-11-09 14:42:52 +02:00
Sergii Kabashniuk 5b4aea8cc3
Added dirigible server to liveness probes list (#11829) 2018-11-06 10:24:08 +02:00
Roman Iuvshyn 365d25f275
RELEASE: Set next development version (#11710) 2018-10-24 16:38:03 +03:00
Oleksandr Garagatyi fde09c684a Change Theia broker image to one hosted in wsskeleton repo 2018-10-18 11:41:32 +03:00
Thomas Mäder 60e9470bf9 Fix stacks ci tests, allow wait for multiple jdltls resolve msg (#11517)
Signed-off-by: Thomas Mäder <tmader@redhat.com>
2018-10-17 15:05:02 +02:00
Thomas Mäder d9870629c6 Removed unused eclipse bundles (#10907)
Signed-off-by: Thomas Mäder <tmader@redhat.com>
2018-10-17 15:05:02 +02:00
Valeriy Svydenko a10f8194e1 use jdt.ls extension in java test-plugin (#7429)
Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
2018-10-17 15:05:02 +02:00
Valeriy Svydenko db11bd3e30 use extension of jdt.ls
Signed-off-by: Valerii Svydenko <vsvydenk@redhat.com>
2018-10-17 15:05:02 +02:00
Thomas Mäder 8b5d67d063 Clean up install script & added launcher plugin
Signed-off-by: Thomas Mäder <tmader@redhat.com>
2018-10-17 15:05:02 +02:00
Vitalii Parfonov 355535dc56
Cleanup code afre removing test LangServer (#11613)
Signed-off-by: Vitalii Parfonov <vparfonov@redhat.com>
2018-10-17 08:48:54 +03:00
Sergii Kabashniuk 8cc8a3e8f2
Add workspace name and namespace as environment variable (#11623)
Add workspace name and namespace as an environment variable (#11623)
2018-10-16 17:19:07 +03:00
Oleksandr Garagatyi 0797d09343 Change dockerimage location to my personal account
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-10-15 13:07:12 +03:00
Oleksandr Garagatyi caa36ae58c Add workspaceEnv to plugin, populate it on sidecar resolving
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-10-11 15:01:58 +03:00
David Festal 534a961e84
Provide better compatibility with alternate OIDC providers (#11090)
Currently in Che there are still a number of requirements in upstream that are not required by the OIDC specification, so that Che still cannot be used with a number of OIDC compliant providers.
For example, in order to have Che working with the [`node-oidc-provider`](https://github.com/panva/node-oidc-provider), the following changes were necessary:

- Remove the requirement to have the email as a claim in the JWT access
token: this is not required the specification and is not supported by a
number of OIDC providers. Normally, the Id token contains such claims.

  So now if the email is not in the JWT token the first time the user connects to Che, ten the email is retrieved from the OIDC provider through its `user-profile` endpoint.

- Explicitely specify the the `openid email profile` scope when requesting the access token. Because OIDC providers, when answering to the `userInfo` endpoint, are expected to return claims that corresponds to the scopes of the access token. So if an access token has the `openid` scope only, the `userinfo` might return no claim at all (according to the specification).

  Until now it was working since keycloak allows adding claims to the returned tokens anyway.

- Allow supporting fixed redirect Uris: most OIDC providers support having a list of redirect URIs to come back to after the authorization step.  But these authorized Uris don't necessarily support wildcards or prefix. Che doesn't support this currently, and these changes introduce 2 fixed callback HTML pages that redirect to the Dashboard / IDE URL of the final page we want to come back to after authentication. This makes Che compatible with more OIDC providers

  We introduced a new boolean property to enable / disable fixed redirect URLs:
  `che.keycloak.use_fixed_redirect_urls` 
  whose default value is `false`

- The previous points required some light changes in the Keycloak Javascript adapter file, that we will submit as a PR to the Keycloak project. I, the meantime the `OIDCKeycloak.js` file is still used, but has been updated to be now based on the `keycloak.js` file of the last `4.5.0-final` Keycloak release. This will make this Keycloak PR easier to get accepted.

  Please keep in mind that this version upgrade only impacts the alternate OIDC provider case: when using a real Keycloak server, Che *always uses the `keycloak.js` file provided by the Keycloak server*. 


Signed-off-by: David Festal <dfestal@redhat.com>
2018-10-10 20:52:35 +02:00
Sergii Kabashniuk 65bd65e23b Upgrade to new dependency mockito-testng (#10647) 2018-10-10 13:58:33 +03:00
Max Shaposhnik 127c433d8a
Define image pulling strategy for sidecars via configuration 2018-10-09 14:20:06 +03:00
Sergii Kabashniuk ad8fd5e8df
Limit pool size used to process Json/rpc requests (#11456)
Limit pool size used to process Json/RPC requests (#11456)
2018-10-05 16:56:39 +03:00
Sergii Leshchenko ef41077252 Adapt GWT IDE to RuntimeLogEvent changes 2018-10-04 21:12:36 +03:00
Sergii Leshchenko a222971865 Replace MachineLogEvent with more abstract RuntimeLogEvent 2018-10-04 21:12:36 +03:00
Roman Iuvshyn 63b389c2fe
RELEASE: Set next development version (#11434)
* RELEASE: Set next development version
2018-10-04 18:25:39 +03:00
Sergii Leshchenko 969f1d4d15 Configure liveness probe for server (PR #11454) 2018-10-04 12:28:39 +03:00
Sergii Leshchenko ff8902da79 Add an ability to configure liveness probes for servers (PR #11454) 2018-10-04 12:28:39 +03:00
Sergii Leshchenko 71ddbc4996 Move provisioning of CHE_MACHINE_NAME in a separate provisioner
Since new machines may be added from Che Plugins description it is needed
to move provision CHE_MACHINE_NAME environment variable to provisioning phase
instead of creating of environment
2018-10-02 17:15:50 +03:00
Sergii Leshchenko 616c700b35
Make Che Server depending on plugin broker image tag instead of latest version (#11422) 2018-10-02 17:06:02 +03:00