Commit Graph

216 Commits (fc2f76bc5c8a6146cdaca34eb2bb60ca8e30aaee)

Author SHA1 Message Date
Sergii Leshchenko 72749a00c6 Introduced RuntimeAbnormalStopping and RuntimeAbnormalStopped events (PR #11570) 2018-10-17 00:11:58 +03:00
Sergii Kabashniuk 65bd65e23b Upgrade to new dependency mockito-testng (#10647) 2018-10-10 13:58:33 +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
Oleksandr Garagatyi ac18e3c16d
Add support of dockerimage and kubernetes recipes in some cases (#11213)
Add support of 'dockerimage' recipe to WS.NEXT flow on openshift
and kubernetes infras.
Add support of 'kubernetes' recipe on openshift infra.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-09-24 10:29:29 +03:00
Roman Iuvshyn ea410c3340
RELEASE: Set next development version (#11169) 2018-09-12 11:53:42 +03:00
Kuperman Sergey 70f25dbebc Make Resource memory request configurable for k8s and OpenShift (#10673)
- Make Resource memory request configurable for k8s and OpenShift.
- Add alias for backwards compatibility to che.workspace.default_memory_limit_mb.
- set memory request to 512Mb.
- document CHE_WORKSPACE_DEFAULT__MEMORY__REQUEST__MB in che.env.
- Configure helm scripts to allow memory attributes on deployment.
Signed-off-by: Sergey Kuperman <sergey.kuperman@sap.com>
2018-09-06 13:02:42 +03:00
Roman Iuvshyn d99b2ed73d
RELEASE: Set next development version (#10867)
* RELEASE: Set next development version
2018-08-22 12:06:38 +03:00
Victor V. Rubezhny 57c43ac8cd Update fmt plugin to latest to enable skipping check #10554 (#10667)
The files are reformatted in order to suit the requirements of coveo maven fmt plug-in of v.2.5.1

Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
2018-08-08 07:20:05 +00:00
Roman Iuvshyn 60da580c92
RELEASE: Set next development version (#10603) 2018-08-02 12:38:48 +03:00
Mykhailo Kuznietsov 07263f1e30
Fix license header text (#10629) 2018-08-02 11:18:04 +03:00
Mykhailo Kuznietsov 15d23edc91
Update license to EPL 2.0 (#10531) 2018-07-31 11:24:36 +03:00
Roman Iuvshyn 985d368f2d
RELEASE: Set next development version (#10345)
* RELEASE: Set next development version
2018-07-10 15:56:52 +03:00
Sergii Leshchenko fef7cc44e6
Fix scope of test dependencies (#10254) 2018-07-04 11:23:20 +03:00
Roman Iuvshyn d7e1c73cf8
RELEASE: Set next development version (#10110) 2018-06-19 17:24:50 +03:00
David Festal 7c3d432918
Private registries support (#9962)
* Support private docker registry in Che on Kubernetes / Openshift : related to issue https://github.com/redhat-developer/rh-che/issues/680

* Extract the `AuthConfig` and related classes to a new module

Signed-off-by: David Festal <dfestal@redhat.com>
2018-06-11 13:39:22 +02:00
Max Shaposhnik 85d1208e84
Does not claim recovery is supported on docker infra 2018-05-31 14:45:36 +03:00
Mykhailo Kuznietsov fc156311ac
Fix initialization of servers statuses by DockerInfrastructure (#9777) 2018-05-31 09:55:49 +03:00
Roman Iuvshyn 7231585f4b
RELEASE: Set next development version (#9862) 2018-05-30 12:01:54 +03:00
Roman Iuvshyn 6677e27a6b
RELEASE: Set next development version (#9669) 2018-05-11 10:27:31 +03:00
Mykhailo Kuznietsov b14ec230cb
Add internal and external API URL environment variables for workspaces (#9475) 2018-04-27 10:51:25 +03:00
Roman Iuvshyn edb0e15e6f
RELEASE: Set next development version (#9473) 2018-04-18 08:31:24 +02:00
Sergii Leshchenko fa2fcbb723 CHE-5919 Make InternalRuntime not implementor of Runtime 2018-04-11 09:22:22 +03:00
Sergii Leshchenko 01ed8cece0 CHE-5919 Add an ability to store status by implementation of InternalRuntime 2018-04-11 09:22:14 +03:00
Oleksandr Garagatyi 74be2270c1 Fix failing tests in docker infrastructure
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-04-03 16:30:21 +03:00
Hanno Kolvenbach 3d841d5a2e Enable single-level DNS domains (*.domain.tld) in SINGLE_PORT mode to simplify HTTPS setup (#8983)
Enable single-level DNS domains (*.domain.tld) in SINGLE_PORT mode to simplify HTTPS setup.
Use whole folder for traefik conf to inject SSL certificates and custom configuration.
CHE_SINGLEPORT_WILDCARD__DOMAIN_IPLESS to che.env.
Signed-off-by: Hanno Kolvenbach <kolvenbach@silexica.com>
2018-04-03 13:50:58 +03:00
David Festal c19ccdcdee
Use the owner Id only in the workspace `RuntimeIdentity` (#8859) (#9274)
* Use the owner Id only in the workspace `RuntimeIdentity` (#8859)

Signed-off-by: David Festal <dfestal@redhat.com>
2018-03-30 14:28:11 +02:00
Anton Korneta fbedb89e58 Add ability to configure docker image build timeout 2018-03-28 17:01:57 +03:00
Roman Iuvshyn e006334aad
RELEASE: Set next development version (#9268) 2018-03-28 10:58:30 +03:00
Roman Iuvshyn dbdac2a604
RELEASE: Set next development version (#9038) 2018-03-07 17:53:03 +07:00
Mykhailo Kuznietsov b47e5841e6
Fix removal of inactive containers (#9017) 2018-03-07 10:03:52 +02:00
Mykhailo Kuznietsov e96a2c320c
Rename docker connector configuration properties (#8948) 2018-02-28 16:55:47 +02:00
Anton Korneta 806a6da184 Make start of OpenShift machines parallel 2018-02-26 11:53:12 +02:00
David Festal 21e00e9b15
Make CHE 6 multi-tenant compatible for OSIO (#8805)
* Copy the boostrapper config file to POD *installer by installer* to avoid executing a huge command, which in turn tries to send a huge GET request (73kb-long URL).
This long GET request was previously not supported by the fabric8 oso proxy.

See https://github.com/openshiftio/openshift.io/issues/2254 for more
details. 

* Make the Kubernetes / Openshift infrastructures multi-tenant-compatible

This includes:

1. Reworking the `KubernetesClientFactory` and `OpenshiftClientFactory`
to:
    - share a single `OkHttpClient` that is the basis of all created
Kubernetes or Openshift clients potentially pointing to
different.cluster URL with different authorization tokens
    - provide the workspaceId in the `create` methods whenever it's
available (workspace start / stop, idling, etc ...
    - have distinct methods for creating the Kubernetes client and the
Openshift client (required since the Openshift client creates connection
leaks on some calls such as exec of POD watch)
This is the implementation of issue
https://github.com/redhat-developer/rh-che/issues/516

2. Adding the `userId` into the SPI `RuntimeIdentity` object. Currently,
only the `userName` is available in this object that gathers information
about the identity attached to a workspace runtime. This change is
required because the `userId` should be accessible from the
`workspaceId` for implementing multi-tenancy and creating workspace
resources in a user-specific location.
This is the implementation of issue
https://github.com/redhat-developer/rh-che/issues/501

* In the Openshift infrastructure, the authentication interceptor should
always convert userName/password-based authentication to
oauth-token-based authentication, even when using the
`KubernetesClient`.

Signed-off-by: David Festal <dfestal@redhat.com>
2018-02-22 18:23:10 +01:00
Mykhailo Kuznietsov 1904eac100
Support Compose memory limit byte units (#8837) 2018-02-20 10:54:30 +02:00
Max Shaposhnik ed39ba6fa8
Use runAsync instead of supplyAsync in downloader (#8830) 2018-02-19 12:15:12 +02:00
Max Shaposhnik df2f7ad4e8
Enabe parallel pull of images in docker infra 2018-02-19 10:53:24 +02:00
Roman Iuvshyn e2762411b3
RELEASE: Set next development version (#8773) 2018-02-14 15:00:52 +02:00
Sergii Leshchenko 7053fab19e
Merge pull request #8559 from sleshchenko/k8s-infra
Added kubernetes infrastructure
2018-02-08 11:17:26 +02:00
Max Shaposhnik 3700d41512
Fix webapp startup if no docker IP's set. (#8655) 2018-02-08 10:12:46 +02:00
Sergii Leshchenko 242f56a8fd CHE-5908 Add Kubernetes infrastructure 2018-02-08 10:08:51 +02:00
Max Shaposhnik dcf80c3c4e
Fix singleport mode in multiuser 2018-02-06 14:15:35 +02:00
Roman Iuvshyn f50c2ebbf5
RELEASE: Set next development version (#8496) 2018-01-31 17:53:10 +02:00
Max Shaposhnik 0d57c48fd5
Restore support of single-port Che mode (on docker infra) 2018-01-31 14:27:51 +02:00
Oleksandr Garagatyi 9d75f3e219
Rework default memory limit setting (#8422)
Extract default machine memory limit setting from
InternalEnvironmentFactory to recipe specific environment
factories.
Make memory limit attribute optional by respecting it by
resource API subsystem.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-01-24 12:47:06 +02:00
Sergii Leshchenko d737353cca Make InternalMachineConfig return InstallerImpl list 2018-01-19 10:02:04 +02:00
Anton Korneta 8ab59e1ece Add setting of RAM limit attribute to env factories and converters for specific recipes 2018-01-17 16:28:51 +02:00
Mykhailo Kuznietsov 2c2bd6637c
Set new year in license headers (#8244) 2018-01-11 16:04:49 +02:00
Oleksandr Garagatyi 4f8f5e9826
Make machine present in workspace runtime when starting event is sent (#8210)
CHE-7900, CHE-8056
Also set machine RUNNING status before bootstrapping installers and
checking servers statuses.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-01-11 11:35:33 +02:00
Oleksandr Garagatyi 21c151debf CHE-7908: do not add server into workspace runtime if there is no matching server config in workspace configuration
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-01-05 11:20:45 +02:00