Commit Graph

57 Commits (17cc64b122c805e25afef38fc13a7609cf7f63fa)

Author SHA1 Message Date
Anatolii Bazko 17cc64b122
Reworked server synchronization (#813)
* Refactor server provisioning

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-05-21 09:21:01 +03:00
Anatolii Bazko 07c4f74f04
Do not allow to upgrade che 7.31 or later to upgrade installation that configured with namespace strategies other than "per user" (#818)
* Don't support another than per-user strategy

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-05-12 15:53:06 +03:00
Anatolii Bazko 546e10651f
Delegate namespaces editor roles to `che` service account (#772)
* Delegate namespaces editor roles to che service account

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-04-17 08:57:35 +03:00
Anatolii Bazko 236f7ab5de
Add GitHub action to validate source code (#762)
* Add GitHub action to validate source code

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-04-09 09:55:33 +03:00
Flavius Lacatusu 9c22b46a46
fix suggestions
Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
2021-04-06 12:31:05 +02:00
Flavius Lacatusu 1d147cd07a
qMerge branch 'master' into dwo_sh
Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
2021-03-30 15:09:22 +02:00
Flavius Lacatusu 2b84f7dc1a
Set single-host CR spec and add tests
Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
2021-03-30 15:06:50 +02:00
Anatolii Bazko 87cdb9e3c4
Code clean up part #1 (#730)
* Code clean up part #1

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-03-24 16:52:11 +02:00
Anatolii Bazko adfdb45556
Remove consolelink object when CheCluster is removed (#708)
* Remove cluster objects when CheCluster is removed

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-03-22 18:25:35 +02:00
Anatolii Bazko 4091005785
Replace `eclipse` organization occurrence on `eclipse-che` (#727)
* Replace eclipse organization occurrence on eclipse-che

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-03-22 12:32:48 +02:00
Anatolii Bazko 052a637430
Che operator should be able to install DevWorkspace operator (#689)
* Che operator should be able to install DevWorkspace operator

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Fix typo

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Add missing roles

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Update cluster roles

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Update nightly bundle

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Fixes

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Add missing files

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Fixes

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Fix tests

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Add tests

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Update nightly bundle

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Improvements

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Add logs

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Fix test

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Fix tests

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Update nightly bundle

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Update clusterroles

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Update test

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Update test

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Update nightly bundle

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-03-04 21:59:34 +02:00
Anatolii Bazko 385976dfd3
Rework tests (#693)
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-03-02 13:56:29 +02:00
Anatolii Bazko 2f5ec20453
Allow to configure domain to create routes (#666)
* Allow to configure domain to create routes

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-02-15 16:47:40 +02:00
Oleksandr Andriienko b7f9c2e89b Handle code review feedback.
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-02-11 19:05:50 +02:00
Oleksandr Andriienko 6e0d0c88b8 Improve code.
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-02-10 19:56:04 +02:00
Oleksandr Andriienko 1fb898e2d2 Try to handle remaining feedback.
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-02-09 23:12:57 +02:00
Oleksandr Andriienko 213b10c9f5 Handle code review changes.
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-02-08 23:06:02 +02:00
Oleksandr Andriienko 72285399fe Fix compilation. Update bundle.
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-02-08 17:53:56 +02:00
Oleksandr Andriienko 05b87ba235 Merge remote-tracking branch 'upstream/master' into createInitialOpenshift4UserForOAuth 2021-02-08 17:15:28 +02:00
Oleksandr Andriienko 4ee509e08b
CHE-15493: <username>-che as default namespace (#166)
* Set  <username>-che as default namespace for Che workspaces

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Co-authored-by: Michal Vala <mvala@redhat.com>
Co-authored-by: Anatolii Bazko <abazko@redhat.com>
2021-02-08 09:56:53 +02:00
Oleksandr Andriienko af1fb81438 Fix format
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-01-28 17:21:50 +02:00
Oleksandr Andriienko c6c7299a17 Merge remote-tracking branch 'upstream/master' into createInitialOpenshift4UserForOAuth 2021-01-28 17:20:35 +02:00
Oleksandr Andriienko 17c2888d74 Use che flavour in the oAuth userName.
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-01-28 17:05:00 +02:00
Oleksandr Andriienko 465976789b Address code review changes.
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-01-28 16:15:22 +02:00
Oleksandr Andriienko add393c29c
Fix external identity provider, external plugin and devfile registry with enabled internal network in CR. (#650)
* Fix external identity provider, external plugin and devfile registry with enabled internal network in CR.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-01-28 15:46:07 +02:00
Oleksandr Andriienko 31d8c300d7 Improve tests. Format cluster-role.yaml.
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-01-28 13:43:03 +02:00
Anatolii Bazko 49bf7c8635
Define Required Metadata Labels on deployment definitions (#603)
* Add default kubernetes labels

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-01-26 15:50:05 +02:00
Oleksandr Andriienko e1601f36c3 Fix format.
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-01-26 00:16:26 +02:00
Oleksandr Andriienko b895518730 Add ability remove initial user. Fix tests: rework code to make it more testable.
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-01-26 00:15:43 +02:00
Anatolii Bazko d5ea65afdd
Specify resources limits (#612)
* Specify resource limits

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-01-25 13:48:06 +02:00
Anatolii Bazko 482155b7e2
Automate the setup of github identity provider with internal keycloak (#589)
* GitHub identity provider provision

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-01-13 17:06:54 +02:00
Oleksandr Andriienko ceef6e0a7b
Fix test failing for CRW (#621)
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-01-11 18:11:32 +02:00
Oleksandr Andriienko 81d0cb603b Create initial Openshift 4 user for oAuth.
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2020-12-27 21:36:33 +02:00
Oleksandr Andriienko ae79476106
Improve oauth handling. (#551)
* Improve oauth handling.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2020-12-21 10:38:37 +02:00
Tom George a6848bf1b6
install kubernetes image puller/kip operator from che-operator (#541)
* Allow the che-operator to install the Kubernetes Image Puller operator and configure a KubernetesImagePuller CR in the same namespace that che is installed in.

Adds a new field to the CheCluster CR, imagePuller, that will install the operator and create a CR if enabled.  If disabled, it will uninstall and remove the image puller artifacts.

Signed-off-by: Tom George <tgeorge@redhat.com>
2020-12-08 08:53:24 -06:00
Oleksandr Andriienko 73d951b3f3
Add ability to use internal network for Keycloak (#507)
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2020-11-26 17:26:56 +02:00
Lukas Krejci b103569906
Refresh oauth client (#550)
Fixes eclipse/che#17886 Update the OAuthClient each time there is a change.
2020-11-26 15:53:41 +01:00
Oleksandr Andriienko 73053b2bc4
Provide internal network urls for plugin registry, devfile registry and internal che api endpoint url. (#468)
* Provide internal network urls for plugin, devfile registries and internal che api endpoint url.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2020-11-26 13:54:26 +02:00
Oleksandr Andriienko 7e30a55014
Fix tests for upstream project (#499)
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2020-10-20 09:21:55 +03:00
Serhii Leshchenko cc93735274
Refactor deploy package (#474)
* Move exposure logic to one place & Group deploy classes

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2020-10-05 17:34:43 +03:00
Anatolii Bazko dbb2c61b6f
Add test for defining labels for routes (#477)
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2020-09-29 09:51:39 +03:00
Lukas Krejci bda65a4e40
Manage the Traefik gateway for implementing single host on OpenShift (#378)
Co-authored-by: Michal Vala <michal.vala@gmail.com>
2020-09-16 15:21:57 +02:00
Anatolii Bazko b193773469
Fix deployment Eclipse Che with single-host strategy (#341)
* Fix deployment Eclipse Che with single-host strategy

Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-07-15 16:20:44 +03:00
Anatoliy Bazko b9942aacff Move defaults to env var
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-05-13 08:19:17 +03:00
Anatolii Bazko a8c155409d
Make che-operator non blocking (#212)
* Make che-operator non-blocking

Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-04-10 17:19:14 +03:00
Anatolii Bazko 0952fa99a3
Port changes from 7.9.x to master (#201)
* Always add the devfile registry public URL env var (#192)

This fixes the [CRW-710](https://issues.redhat.com/browse/CRW-710) blocker JIRA  bug (blocking CRW 2.1 release)

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

* Correctly propagate proxy settings in the operator and Keycloak  (CRW-709) (#200)

* Correctly propagate proxy settings in the operator and Keycloak .This fixes issue https://issues.redhat.com/browse/CRW-709

* Use the same Go release in PR checks as in the main Docker file to avoid a syntax arror in the PR check jobs

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

* Refactoring

Co-authored-by: David Festal <dfestal@redhat.com>
2020-03-19 11:12:39 +02:00
Anatolii Bazko 016e7f11cd
Support single-user mode (#185)
* Support single-user mode

Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-03-17 09:29:53 +02:00
David Festal 76d0a54416 Fix a failing test due to hard coded `che`
Signed-off-by: David Festal <dfestal@redhat.com>
2019-11-15 11:40:40 +01:00
Tom George 431809f950 Update custom resource doc, and make it available in OpenApi spec (#94)
* Add openapi gen flags
* Get code to compile with new OpenApi field names

Signed-off-by: Tom George <tg82490@gmail.com>

* Complete the doc & fix optional management
* Rename the CRD to the initial name.
* Correctly update the CRD file
* remove unused and error-prone CRD file
* Update OLM packages with new OpenApi defs

Signed-off-by: David Festal <dfestal@redhat.com>
2019-10-14 14:28:51 +02:00
Tom George 9a4b8f2618 Add CustomCheProperties field (#87)
* Fix a linter error
* Fix a couple of tests that assume openshift v3 APIs
* Add overrideCheProperties to allow custom properties in the che config map
  - If the custom configmap exists for some reason, merge it with the che configmap, and then delete it
  - Rename GetCustomConfigMapData to GetPredefinedConfigMapData since we are not using the custom config map anymore
* Merge custom configmap into overrideCheProperties and delete it if it exists
* change OverrideCheProperties to CustomCheProperties, make it a type of map[string]string
* Correct error handling of custom config map and move it up higher in the reconciliation function
* Add serviceaccountname to Che configmap, remove GetPredefinedConfigMapData()
* Update CR then delete configmap
* Add license back
* Format license block

Signed-off-by: Tom George <tg82490@gmail.com>
2019-10-07 13:53:37 +02:00