Commit Graph

83 Commits (70ebef71e3b749701fee52685d136dccd9563c2e)

Author SHA1 Message Date
Eugene Ivantsov 733d7bbd34
Multiple changes to deploy scripts (#11025)
* Multiple changes to deploy scripts

* Remove debug echo

* Fix formatting

* Fix formatting

* Fixup
2018-09-03 14:38:14 +03:00
Oleksandr Garagatyi 27bed82d5c
CHE-10561: Rework WS.NEXT flow to latest concept of plugin broker (#10740)
* Move wsnext flow in Kubernetes infra implementation

Now we need to start a broker and pass meta.yaml files to it.
Starting a broker is infra-specific stuff, so it has to be done
on the infra implementation side because we don't have a part
in the infra SPI that would allow us to start a broker.
Passing Meta files using InternalEnvironment object is more
invasive than passing only attributes. So, this commit applies
less invasive scheme.

* CHE-10202,10561: Add fetching of Che editor, plugins meta from the registry

Add fetching of Che editor ID from workspace attributes.
Add fetching of Che plugins IDs from workspace attributes.
Use colon sign for separating editor/plugin ID and version
instead of the slash.
Remove old Workspace.Next model objects.

* CHE-10561: Share WS.NEXT between k8s and OS infras

Use WS.NEXT in both k8s and OS infrastructure implementations.

* CHE-10561: fix fetching meta.yaml files from che-plugin-registry

* CHE-10561: Fix sidecar model serialization

Fixes the fact that some fields in workspace sidecar tooling model
POJOs were incorrectly named or required custom serialization of
fields.

* CHE-10561: Add listening of che-plugin-broker

Add code that allows listening for events from Che plugin broker.
An event might contain workspace tooling config as a result if the broker
finished successfully or error otherwise.

* CHE-10561: Add PluginBrokerManager to control broker lifecycle

Adds PluginBrokerManager that configures/starts/waits Che plugin
broker.

Remove unused code.
Remove notion of Workspace next.

* Align plugin registry property between different components

* Fix extra  path in che plugin registry URL

Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-09-03 08:57:32 +03:00
Eugene Ivantsov 1bacf0c5d1
Merge pull request #11011 from eclipse/ocp_sh_improvements
Ocp sh improvements
2018-08-31 14:45:48 +03:00
Eugene Ivantsov d75c8fa1c5 ocp.sh stuff 2018-08-31 14:43:37 +03:00
Eugene Ivantsov 0d752f76c1 ocp.sh stuff 2018-08-31 14:43:09 +03:00
Eugene Ivantsov 868b2aa60a ocp.sh stuff 2018-08-31 14:41:48 +03:00
Dmytro Nochevnov 265e044e0a
Fix path to OCP oauth certificate (#11010)
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
2018-08-31 13:57:08 +03:00
Sergii Kabashniuk 2b7ebd8f85
Added ability to deploy che plugin registry with ocp.sh (#10954)
Added ability to deploy che plugin registry with ocp.sh ./ocp.sh --deploy-che --deploy-che-plugin-registry
Add environment variableCHE_PLUGIN_REGISTRY_URL for che-master with a link to che plugin registry
2018-08-30 10:18:51 +03:00
Eugene Ivantsov 7f668b0b2f
Merge pull request #10947 from eclipse/revert_update_to_310
Revert update to 3.10
2018-08-29 11:09:09 +03:00
Eugene Ivantsov 27d3c58718 Remove host dir arg 2018-08-28 13:33:35 +03:00
Eugene Ivantsov d176a5144f Revert update to 3.10 2018-08-28 12:15:59 +03:00
Ido Itzkovich 11be6c2ecd Make Che logging variables configurable via helm (#10912)
- Added option to set CHE_LOGGER_CONFIG through
     global.log.loggerConfig in values.yaml.
     - Added option to set name of custom log appender
     implementation through global.log.customAppenderName
     in values.yaml.
     - Added default value for appender name in values.yaml
     - Added CHE_LOGGER_CONFIG to deployment container env

Signed-off-by: Ido Itzkovich <ido.itzkovich@gmail.com>
2018-08-28 11:23:39 +03:00
Eugene Ivantsov 01051b8ac7
Merge pull request #10888 from eclipse/create_okd_dir
Do not exit when okd dir removal fails
2018-08-27 10:16:35 +03:00
Sergii Kabashniuk 3ed123e8d3
Revert removal of CHE_MULTIUSER variable from che-server-template.yaml (#10911) 2018-08-27 10:08:00 +03:00
Eugene Ivantsov 566769d014 Do not exit when okd dir removal fails 2018-08-23 13:18:27 +03:00
Eugene Ivantsov 99a4ff5c00 Check if okd dir exists before removing content 2018-08-23 11:25:42 +03:00
Eugene Ivantsov ca4543f386 Create OKD local dir 2018-08-23 10:34:26 +03:00
Eugene Ivantsov 193a395f87
Merge pull request #10766 from eclipse/openshift_v_3_10
Multiple changes to deploy scripts
2018-08-22 20:52:57 +03:00
Eugene Ivantsov e5ed7028ae Remove local dir. Fix path to crt file 2018-08-21 12:28:38 +03:00
Mykhailo Kuznietsov dcb00c53d0
Fix remaining files with licenses (#10746) 2018-08-21 10:25:45 +03:00
Oleksandr Garagatyi eda8344ae6 Remove marketplace placeholder leftovers
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-08-20 11:08:07 +03:00
Oleksandr Garagatyi b5d727e475 Make Che communicate with che-plugin-registry
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-08-20 11:08:07 +03:00
Eugene Ivantsov d20e560693 remove todo 2018-08-15 15:53:30 +03:00
Guy Daich 099323a1e4
Merge pull request #10509 from i300543/master
Make host calculation more short and concise for che master
2018-08-15 15:31:53 +03:00
Eugene Ivantsov b676010b23 Revert workaround with tags 2018-08-14 19:34:08 +03:00
Eugene Ivantsov 5d5eb2bad9 Uncomment function 2018-08-14 17:54:49 +03:00
Sergey Kuperman 107c5507f9 fix hardcoded secret name in certificate.yaml
Signed-off-by: Sergey Kuperman <sergey.kuperman@sap.com>
2018-08-14 14:35:09 +03:00
Eugene Ivantsov 9baa4bb84a Exit if ansible service broker deployment times out 2018-08-14 13:54:08 +03:00
Eugene Ivantsov 3eb094a7c1 Multiple changes to deploy scripts 2018-08-14 12:39:45 +03:00
Maxim Musienko 976842ffe9 fix k8s deployment fail (#10747)
* fix k8s deployment fail
2018-08-13 12:14:20 +03:00
Roman Iuvshyn 5d26cafed4
allow to set che ws agent inacive timeout in helm (#10705) 2018-08-09 11:37:04 +03:00
Angel Misevski 44588aa775 Remove unnecessary properties from kubernetes/OS infrastructure
Removes properties

- che.infra.kubernetes.username : can change, requiring reconfiguration
- che.infra.kubernetes.password : can change, requiring reconfiguration
- che.infra.kubernetes.oauth_token : expires

as they complicate setup and all represent suboptimal running scenarios.
Use che serviceaccount instead.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2018-08-07 10:11:12 -04:00
Sergey Kuperman 124a8f18ef Make host calculation more short and concise for che master
Signed-off-by: Sergey Kuperman <sergey.kuperman@sap.com>
2018-08-06 10:57:59 +03:00
Mykhailo Kuznietsov 1170a06bb9
Add Proxy env variables for workspace containers in Openshift and Kub… (#10387) 2018-07-31 17:27:36 +03:00
Oleksandr Garagatyi e17fbed76f Small fixes WS.NEXT deployment readme
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-07-19 09:54:29 +02:00
Roman Iuvshyn bfd32d65fe
clean up k8s config map (#10391)
* clean up k8s config map
2018-07-12 11:56:55 +03:00
Roman Iuvshyn 19ecb7d8bd
set default k8s namespace to che (#10366)
* allow to override CHE_INFRA_KUBERNETES_NAMESPACE during deploy che on k8s with helm
2018-07-10 18:31:46 +03:00
Sergii Leshchenko a2c3a2229c
Added an ability to specify custom ocp tools dir (#10302)
* Fix evaluation of OC version in ocp.sh script

* Add an ability to specify custom ocp tools dir

The motivation to do that is not to download oc and jq
binaries each time after reboot since default folder is located in tmp
folder
2018-07-06 10:24:32 +03:00
Eugene Ivantsov cf0db82b97 Make initial pvc claim configurable 2018-07-05 16:33:18 +03:00
Guy Daich 7802427a32 Update readme.md (#10152)
Fix Routing Strategy Docs
2018-07-05 14:37:11 +03:00
Oleksandr Garagatyi 9fe9021330
Adjust Workspace.Next model classes to latest updates in the Workspace.Next vision (#10246)
Rework model, of CheService and renamed it to ChePlugin. 
Replace features hosting to apache server to be able to host plugin files and avoiding having model files for Go lang.
Host YAMLs instead of JSONs. Downloads and parse ChePlugin YAMLs instead of JSONs from the marketplace.
Improve unit tests coverage. 
Add support of Che Server protocol and path, so it is possible to run Classic GWT IDE in Workspace Next now.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-07-04 18:13:20 +02:00
Dmytro Nochevnov 363126c7a5
Fix start of workspaces of Eclipse Che Singleuser on OCP (#10146)
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
2018-06-22 10:30:26 +03:00
Roman Iuvshyn 86a56b0133
Update deploy_che.sh (#10126) 2018-06-21 10:37:28 +03:00
Dmytro Nochevnov c55a2db96c
Setup OCP to create objects under the certain user account (#10114)
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
2018-06-20 12:41:27 +03:00
Sergey Skorik 509e83955f
Fix image-che-flag
Use the right env name
2018-06-18 09:59:40 +03:00
Eugene Ivantsov 5fed493c90 Fix ocp.sh 2018-06-13 09:19:09 +03:00
Oleksandr Garagatyi bddbd658bf Add Workspace Next support to Openshift recipe/infra
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-06-08 17:10:24 +03:00
Oleksandr Garagatyi ddba875800 Fix incorrect link to Che docs
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-06-08 15:26:27 +03:00
i300543 34e6ab326f Improve wsmaster OpenIdConnect configurability, and helm deployment scripts (#9826)
* Improve wsmaster OpenIdConnect configurability, and helm deployment scripts
- Make username claim configurable  in cases
  Oidc provider does not support the default claim (default is "preferred_user")
- Introduce fallback for username (issuer+subject) if the username claim is not present
  in the token
- Extend helm scripts to take customOidcProvider and customOidcUsernameClaim
  parameters into account when deploying che master.
- Introduce cheDedicatedKeycloak global param, conditioning if dedicated che
  keycloak server should be deployed, and waited on by the master.
- default value for cheDedicatedKeycloak (if not defined) is true
  if the cheDedicatedKeycloak parameter is defined and is false,
  customOidcProvicer must be supplied, when using multiuser mode.

Signed-off-by: Sergey Kuperman <sergey.kuperman@sap.com>

* Code review fixes

Remove the extra if condition in configmap.yaml
Remove extra line in requirements.yaml
fix typo in deployment.yaml

* Add che.keycloak.username_claim property as NULL into multiuser.properties

* Simplify helm conditions, when deploying che master with or without keycloak

if multiuser = true, and .Values.customOidcProvider was supplied, assumption is that
we work with no keycloak (no waiting in deployment)

global.cheDedicatedKeycloak is still needed as separate variable for requirements.yaml to determine whether keycloak chart should be installed

so for keycloak deployment, no parameters need to be passed beside global.multiuser=true,
for custom OIDC :
.Values.customOidcProvider=http://url, and global.cheDedicatedKeycloak=false
both need to be set
2018-06-06 10:35:04 +03:00
Oleksandr Garagatyi 2fcdcf1fda CHE-8265: Add an ability to try Workspace.Next on k8s deployment
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-06-05 10:02:03 +03:00