Commit Graph

28 Commits (4d76916632a613af84840de17aba387900d39482)

Author SHA1 Message Date
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
Eugene Ivantsov 29cb708773 Adding self signed cert to Java trust store 2018-05-30 12:27:41 +03:00
David Festal e0890235fa
Allow creating OpenShift objects under the current user account on OCP (#9577)
* Support identity provider token retrieval in both JSON or URL formats.

That's required because some identity providers (such a `openshift-v3`)
correctly return the token information in JSON, as expected. So
switching to the url-based syntax should only used when the returned
json is invalid.

Signed-off-by: David Festal <dfestal@redhat.com>

* Introduce an `OpenShiftClientConfigFactory` to allow customizing the OpenShift config returned according to the current context (workspace ID, current user)

Signed-off-by: David Festal <dfestal@redhat.com>

* Openshift Infra + Multi-user => allow using OpenShift identity provider to connect to openshift with the OS oauth token of the current Che user.

This introduces a new property:

`che.infra.openshift.oauth_identity_provider`

Signed-off-by: David Festal <dfestal@redhat.com>

* Notify the user when a workspace cannot be started from the nav bar.

Signed-off-by: David Festal <dfestal@redhat.com>

* Add the ability to install the Openshift certificate into Keycloak

Signed-off-by: David Festal <dfestal@redhat.com>

* Add a yaml file to provide the openshift certificate as a secret,

in case it has to be installed into the dedicated Keycloak server.

Then the commands to install Che multiuser on Minishift with this
certificate are:

```
oc new-project che

oc process -f multi/openshift-certificate-secret.yaml -p
CERTIFICATE="$(minishift ssh docker exec origin /bin/cat
./openshift.local.config/master/ca.crt)" | oc apply -f -; \
oc new-app -f multi/postgres-template.yaml; \
oc new-app -f multi/keycloak-template.yaml -p ROUTING_SUFFIX=$(minishift
ip).nip.io; \
oc apply -f pvc/che-server-pvc.yaml; \
oc new-app -f che-server-template.yaml -p ROUTING_SUFFIX=$(minishift
ip).nip.io -p CHE_MULTIUSER=true -p
CHE_INFRA_OPENSHIFT_OAUTH__IDENTITY__PROVIDER=openshift-v3; \
oc set volume dc/che --add -m /data --name=che-data-volume
--claim-name=che-data-volume
```

Of course it's still needed to register the `openshift-v3` identity
provider in the Keycloak server, as well as, add the corresponding
`OAuthClient` object in Minihshift.

Signed-off-by: David Festal <dfestal@redhat.com>
2018-05-28 11:39:44 +02:00
Dmytro Nochevnov 6c0f87c29a
Wait until Che is available when deploying it on OCP (#9783)
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
2018-05-23 23:13:21 +03:00
Sergii Leshchenko 459acb5bb6 Fix project parameter usage example in deploy_che.sh script 2018-05-17 11:50:00 +03:00
Anton Korneta fc04f59045 Increase termination grace period to 6 minutes 2018-05-17 11:50:00 +03:00
Eugene Ivantsov c835bf3172
Merge pull request #9619 from sleshchenko/deployChe
Add logging of Kubernetes/OpenShift unrecoverable events
2018-05-07 10:15:18 +02:00
Dmytro Nochevnov ab9d485d8d Fix Eclipse Che deploy on OCP (#9627)
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
2018-05-05 10:57:41 +02:00
Sergii Leshchenko 279d85b728 Add name of an unknown argument in error message 2018-05-04 17:36:01 +03:00
Eugene Ivantsov a22a2b3510
Update deploy_che script (#9513)
* Update OpenShift Origin version to 3.9

* Deploy script uses templates

* Pass args to deploy script

* Remove old scripts and yamls

* Add missing args to ocp.sh help and and help to deploy_che.sh

* Small fixes

* Remove mistakenly added file

* Remove mistakenly added file

* Remove -a in docker ps to get registry container

* Do not pass args but export envs in ocp.sh

* Messed envs a bit

* Delete test service that is used to compute routing suffix

* Remove unnecessary port from Keycloak route

* Fixes

* Fixes

* Typo

* Minor fixes
2018-05-04 11:36:41 +02:00
Eugene Ivantsov b9346ee246
Update OpenShift Origin version to 3.9 (#9509)
* Update OpenShift Origin version to 3.9

* Update grep to verify docker registyr container is in running state

* Do not list exited containers when looking for Registry container ID
2018-04-23 18:05:00 +03:00
Eugene Ivantsov b062bdfb33
Use -gt as comparison operator (#9497) 2018-04-19 15:57:24 +03:00
Eugene Ivantsov c40a14e45e
Fixes to ocp script (#9493)
* Fixes to ocp script

* Remove duplicated env
2018-04-19 14:10:06 +03:00
Eugene Ivantsov b4c9fa91ea
Make Keycloak Admin configurable (#9490)
* Make Keycloak Admin configurable

* Make Keycloak Admin configurable

* Fix typos
2018-04-19 14:09:39 +03:00
Eugene Ivantsov fa046bd6e3
Use templates only to deploy Che to OpenShift (#9190)
* Use templates only to deploy Che to OpenShift

* Avoid breaking existing scripts

* Avoid breaking existing scripts

* Fixes

* Cleanup

* Cleanup

* Fixup

* New line and typos

* New line and typos

* Update dc/che. Env variables

* Remove creationtimestamp

* Template cleanup. Update README

* Fix DB URL env

* Add missing keycloak param

* Changes to ocp.sh to use new templates. Fix Keycloak template

* Env support

* Update server yaml. Update ocp.sh

* Configure CHE_IMAGE and CHE_TAG

* Add recycler

* Revern recycler sa

* Using credentials and creating ws in separate namespaces

* Use custom Keycloak image

* Use custom Keycloak image

* Remove use of credentials
2018-04-17 14:29:59 +03:00
Ilya Buziuk 6f3842bfeb che #9376 Setting default postgres image for 'deploy_postgres_only.sh' instead of failing if 'IMAGE_POSTGRES' env var is not set
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
2018-04-12 11:04:01 +02:00
Max Shaposhnik 161ff9416c
Configure JPA L2 cache coordination between instances on Openshift® / Kubernetes (#8982) 2018-04-11 13:44:15 +03:00
Oleksandr Garagatyi 131ae27612 CHE-9275: Add setting of an env var to configure master logs encoding
Add setting of env var CHE_LOGS_APPENDERS_IMPL that sets Che master
logs producing configuration to deployments for:
- docker (che.env)
- kubernetes (kubectl)
- kubernetes (helm)
- openshift (scripts)
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>

Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-04-06 09:16:49 +03:00
Anton Korneta 0afb356487 Disable che-data pvc creation for musltiuser che deployment 2018-03-28 11:17:20 +03:00
Roman Iuvshyn e38b7e963a
Allow to override CHE props defined in che-config file (#9240) 2018-03-26 14:20:43 +03:00
Roman Iuvshyn 03a06813e9
ocp.sh clean up (#9207)
ocp.sh clean up
2018-03-23 15:46:31 +02:00
Roman Iuvshyn e2e8ad95ae fix wait CHE pod in deploy script
both `available` and `progressing` should be "True" to treat deployment as successful
2018-03-22 16:30:16 +02:00
Roman Iuvshyn 67e95e9eaf fix deploy che multiuser
make KC configuration before CHE pod start
2018-03-22 14:44:03 +02:00
Roman Iuvshyn 123c3adde3 ocp.sh clean-up
ocp.sh clean-up
2018-03-22 11:31:51 +02:00
Roman Iuvshyn bd3c1956a2
fix deploy_che.sh ability to be launched from any place (#9165)
* fix deploy_che.sh ability to be launched from any place
2018-03-21 14:31:51 +02:00
Roman Iuvshyn 80b415fdd5
fix ocp.sh ability to be launched from any place (#9159)
* fix ocp.sh ability to be launched from any place
2018-03-21 12:05:44 +02:00
Oleksandr Garagatyi d047863484 Move deployment files out of dockerfiles folder
Move openshift/k8s deployment files from dockerfiles/init folder
to deploy folder with a better structure because they are not
related to init dockerfile.
Add readme files in each deployment target folder with links to
Che docs where the process of deployment is described.
Remove delivery of deployment files by init image which is
useless.
Remove empty docs files from the repo and init image.
Fix some minor typos and trailing spaces.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-03-20 22:13:24 +02:00