Commit Graph

544 Commits (b2b92b5463afa4fac9b018d9d00a3be3e90abb62)

Author SHA1 Message Date
Lukas Krejci 5769840621
Initialize the empty binding for allowed environment type upgrades in k8s infrastructure (#13466)
Initialize the empty binding for allowed environment type upgrades in
kubernetes infrastructure.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-06-03 17:01:18 +02:00
Vitalii Parfonov 64129a8d44
RELEASE: Set next development version (#13460) 2019-06-03 16:28:42 +03:00
Lukas Krejci ee4461b2fd
Merge api-devfile and api-workspace together (#13417)
Merge api-devfile and api-workspace together and put the infrastructure-dependent code behind injectable interfaces.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-05-31 12:43:45 +02:00
Sergii Leshchenko 3bc9fe72c5
Add an ability to disable waiting for PVCs to become bound (#13409)
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-05-29 15:24:16 +03:00
Roman I dd1d9b5a58
switch to RC version scheme (#13424) 2019-05-28 13:52:49 +03:00
Roman I ffb8a3e013
RELEASE: Set next development version (#13377) 2019-05-22 09:52:28 +03:00
Oleksandr Garagatyi 3e6d195f48 Configure new plugin registry and broker
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-05-13 16:38:32 -04:00
Roman Iuvshyn 53cb2c53fa
RELEASE: Set next development version (#13264) 2019-05-05 12:24:42 -04:00
Oleksandr Garagatyi 35ce3544f7
Adapt UD and wsmaster to new plugin notation (#13204)
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-05-02 09:50:01 +03:00
John Collier 7ac34636bc Add option to specify additional cluster role for workspaces. (#13178)
Signed-off-by: John Collier <John.J.Collier@ibm.com>
2019-04-26 19:34:28 +02:00
Sergii Leshchenko 0e3c7eb5ab
Do not inherit pod name by plugins machines (#13214)
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-04-24 16:01:28 +03:00
Sergii Leshchenko 2301e5ebb9 Add an ability to create and start a workspace from Devfile (spi only)
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-04-24 15:33:46 +03:00
Sergii Leshchenko 8561543c00 Add getName method to WorkspaceImpl
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-04-24 15:33:46 +03:00
Max Shaposhnik d876d72c14
Database model and scripts for devfile
Signed-off-by: Max Shaposhnik <mshaposh@redhat.com>
2019-04-18 16:11:40 +03:00
Lukas Krejci 1d7046ba40 Generate short random names for the che-originating ingresses/routes.
The original name is still stored as a label in case the ingress/route
is originating from the user.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-04-17 18:13:44 +02:00
Angel Misevski 0adb360883 Make plugin brokering process use fully qualified names instead of metas.
Instead of downloading metas from plugin registry and passing them to
plugin broker, provide plugin broker with serialized plugin fully
qualified names and allow broker to download necessary metas.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-04-15 23:04:19 -06:00
Roman Iuvshyn e60598bdaf
RELEASE: Set next development version (#13102) 2019-04-10 17:13:01 +03:00
Sergii Leshchenko 78976298b0 Use a default message of original exception does not have any
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-04-03 11:16:40 +03:00
Sergii Leshchenko d1b9203099 Make setting deployment selector NPE safe
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-04-02 16:35:30 +03:00
John Collier 86436a88e6 Allow sidecar containers to list Kubernetes services by default (#12983)
* Allow workspace pods to list Kubernetes services by default
* Update workspace-view-role.yaml to allow listing
of Kubernetes services
* Allow sidecar containers to list services on OpenShift
* Add services resource to workspace-view role for OpenShift

Signed-off-by: John Collier <John.J.Collier@ibm.com>
2019-03-28 15:25:55 +02:00
Angel Misevski 1263f06945 Add tracing to broker phases
Trace the prepare storage, deploy, and wait broker result phases of
plugin brokering.

Additionally clean up start tracing code slightly:
- Move span names to a separate file
- Move TracingUtil functionality into TracingTags

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-03-28 02:22:51 -04:00
Angel Misevski 15a7f9da6f Rework workspace start tracing
- Group machine start traces under a separate span
- Move wait running and check servers spans out of start machines span
  since the start machine span ends before check servers is complete
- Track wait running async and check servers spans separately
- Add tracing to bootstrap servers

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-03-28 02:22:51 -04:00
Oleksandr Garagatyi 26f21ebe2f
Use single unified plugin broker for all the plugins (#12942)
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-03-25 16:44:56 +02:00
Masaki Muranaka b765a5ffb0 Support storage classes on Kubernetes infra. (#12818)
Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
2019-03-21 08:43:49 +02:00
Sergii Leshchenko bb6b13968c Merge multiple k8s/os tools to workspace recipe
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-03-20 13:18:56 +02:00
Sergii Leshchenko 095e52d186 Make K8s/OS infrastructure support multiple pods/deployment in recipe
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-03-20 13:18:56 +02:00
Sergii Leshchenko 97cd8bce51 Fix NPE when pod template of deployment does not have name specified
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-03-19 17:00:26 +02:00
Sergii Leshchenko df3e15789b Deny to specify objects with the same kind and name in k8s/os recipe
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-03-19 17:00:26 +02:00
Roman Iuvshyn 0abdc77ea0
RELEASE: Set next development version (#12922) 2019-03-19 15:56:30 +02:00
Sergii Kabashniuk 315767ea5d
NopTracer is used if tracing is not enabled (#12897)
* NopTracer is used in tracing is not enabled

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-03-19 09:44:49 +02:00
Eugene Ivantsov 8069312d26
Pre create directories with 777 permissions (#12892) 2019-03-15 12:35:36 +02:00
Oleksandr Garagatyi 6faabffe11 CHE-12395: Add 'extensions' field to meta model
Add 'extensions' field to meta model.
Use Jackson instead of GSON since we use Jackson annotations.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-03-12 21:22:09 +02:00
Eugene Ivantsov a9b952297a
Create view role rather than rely on view clusterRole (#12789)
* Create view role rather than rely on view clusterRole

* Create view role for k8s. Fix typo

* Typo and Java doc sync

* Add namespaced role to k8s and openshift templates. Role instead ClusterRole for k8s

* Rename view role to workspace-view

* Fix formatting

* Fix javadoc. Revent erroneous changes to postgres template

* Remove hidden Dockerfile

* Revert pg changes
2019-03-11 18:20:37 +02:00
Lukas Krejci d93995920a Add command/arg support to dockerimage tool in devfile
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-03-08 17:05:16 +01:00
Sergii Leshchenko 78f1cabc3a
Make Devfile parse k8s/os recipe content in the same way as infrastructures do (#12810)
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-03-06 14:14:36 +02:00
Lukas Krejci b52ee401c8 Handle the containerCommand and containerArgs attributes of the machine
defined with the dockerimage recipe.

Note that this only works in kubernetes and openshift environments.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-03-05 15:04:18 +01:00
RickJWagner 150435b3be correct typo in comment (#12785)
Signed-off-by: Rick Wagner <RickJWag@yahoo.com>
2019-03-01 08:51:04 +02:00
Roman Iuvshyn 0881493644
RELEASE: Set next development version (#12777) 2019-02-27 16:02:33 +02:00
Sergii Kabashniuk a5b06d444f
Introduced two web-socket endpoints for workspace master to split JSON-RPC messages (#12673)
* Introduced two web-socket endpoints for workspace master to split JSON-RPC messages
Based on Dmytro's Kulieshov  work https://github.com/eclipse/che/pull/12252

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-02-27 13:29:43 +02:00
Roman Iuvshyn 3778f01220
RELEASE: Set next development version (#12768) 2019-02-27 11:50:40 +02:00
Oleksandr Garagatyi 53787f090a Fix incorrect wording in the comments
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-02-25 13:18:33 +01:00
Lukas Krejci f66e967339 Make variable expansion work for environment variables in k8s.
K8s does the expansion only if it already knows about the variable being
expanded.

This means we have to sort the environment variable list prior to sending
it to k8s in such a way that vars that reference others always follow the
referenced ones.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-02-25 13:18:32 +01:00
Angel Misevski 297701986d Add log message when starting InconsistentRuntimesDetector
Add log message when starting InconsistentRuntimesDetector and
log number of workspaces to be checked for monitoring purposes.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-02-25 08:49:54 +01:00
Oleksandr Garagatyi 0f84710141
Add more traces and cleanup code (#12655)
Add traces for plugin brokering.
Refactor and cleanup code.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-02-23 22:54:07 +02:00
Sergii Leshchenko 9e1571c265 Remove duplicate PROJECTS_VOLUME_NAME constant
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-02-21 16:38:07 +02:00
Sergii Leshchenko d26e0f7d5c
Provision plugin attribute for machines that contains related plugin id (#12669)
* Provision plugin attribute for machines that contains related plugin id
* Remove unused constants from Workspace API

Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-02-15 10:48:46 +02:00
Angel Misevski 8c4b3924b9 Enable getting workspace events from ReplicaSets and Deployments
- Allow KubernetesDeployments#watchEvents to handle events from
  Deployments and ReplicaSets as well as Pods.
  - Necessary to handle quota events (e.g. exceeding quota)
- Fix regression where sometimes unrecoverable events weren't handled
  at all due to pod naming issues
- Add 'FailedCreate' to unrecoverable events list (this event occurs
  when quota is exceeded.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-02-13 09:31:52 -05:00
Oleksandr Garagatyi f40b8755b6
Add port attribute to runtime server (#12642)
This is needed to help clients in figuring out which port led
to creating a server in a workspace.
Also, refactor some code.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-02-13 12:13:15 +02:00
Oleksandr Garagatyi 6046ab77f5
Use plugin ID instead of sidecar container name to override sidecar memory using workspace attributes (#12615)
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-02-13 10:52:51 +02:00
Oleksandr Garagatyi e596a28030 Set kubernetes namespace to null on workspace recipe parsing
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-02-12 20:48:39 +02:00