Commit Graph

65 Commits (b6d2666ee6f6d229eadc66a24c2a7cb7dc4e4ded)

Author SHA1 Message Date
Anatoliy Bazko 3cdff35168 Remove references to nightly images
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-05-27 16:25:10 +03:00
Anatoliy Bazko 75a2c2829c Update defaults tags to 7.13.2
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-05-27 15:59:42 +03:00
Anatoliy Bazko b205e92a79 Fix completion and docs in OpenShift 4.3
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-05-21 08:42:10 +03:00
Anatoliy Bazko 8e1d78211d Update defaults tags to 7.13.1
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-05-21 08:11:31 +03:00
Anatoliy Bazko a912d273fb Update defaults tags to 7.13.0
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-05-15 18:18:46 +03:00
Oleksandr Andriienko 03978b3724
fix: Check identity providers for oauth instead of check amount users. (#248)
* Back off openshift oauth, when oauth can't be used

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>

* Use freezed go modules.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>

* Add newer olm bundle.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2020-05-15 11:43:58 +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
Mykola Morhun 0c671d8a11
Make default Keycloak password generated (#240)
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
2020-05-07 15:28:41 +03:00
Anatoliy Bazko 69a6007c56 Update make-release.sh, set nightly tags for master
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-05-07 13:34:52 +03:00
Anatolii Bazko b0a62e0f4d
Merge pull request #235 from nickboldt/fixup-org_v1_che_cr.yaml-doc
fix doc in org_v1_che_cr.yaml: version of...
2020-05-05 08:17:14 +03:00
nickboldt 140a030ab7 point to actual place where hardcoded default lives
Change-Id: If93c26307caf1a3ff0a44490d47435eb5b6b361d
Signed-off-by: nickboldt <nboldt@redhat.com>
2020-05-04 14:29:35 -04:00
Anatoliy Bazko 5f8d79810c Port 7.12.1 csv to master
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-05-02 15:48:52 +03:00
nickboldt c4ef964aa2 fix doc in org_v1_che_cr.yaml: version of registry.redhat.io/rhscl/postgresql-96-rhel7 used is NOT in pkg/deploy/defaults.go, but in the operator metadata CSV now
Change-Id: I8c0630b86fe78d5e7f3869b82a0633bb3b9d2174
Signed-off-by: nickboldt <nboldt@redhat.com>
2020-05-01 12:06:33 -04:00
Mykola Morhun bc47b7b1af
Automate TLS secrets generation for Kubernetes family infrastructures (#220)
* Automate TLS secrets generation for Kubernetes family infrastructures

Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
2020-04-28 16:48:58 +03:00
Anatolii Bazko e655435d5d
Release version 7.12.0 (#228)
* Update defaults tags to 7.12.0

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

* Update nightly olm files

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

* Release OLM files to 7.12.0

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

* Fix release script

Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-04-24 14:14:20 +03:00
Anatolii Bazko bbc7579a55
Release version 7.11.0 (#215)
* Update defaults tags to 7.11.0

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

* Update nightly olm files

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

* Release OLM files to 7.11.0

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

* Fix olm.sh

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

* Minor fixes of the release process

Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-04-08 10:35:51 +03:00
Anatolii Bazko fdaeb5e060
Store credentials into secrets instead of plain text of CheCluster CR fields (#198)
* Use secrets instead of plain text

Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-03-25 09:57:36 +02:00
Anatolii Bazko 9fce59a932
Release 7.10.0 (#195)
* Update defaults tags to 7.10.0

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

* Update nightly olm files

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

* Release OLM files to 7.10.0

Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-03-16 13:49:39 +02:00
Mykola Morhun d92ad728ba
Set tlsSupport to true by default (#186)
* Set tlsSupport to true by default

Signed-off-by: Mykola Morhun <mmorhun@redhat.com>

* Update nightly olm files

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

Co-authored-by: Anatoliy Bazko <abazko@redhat.com>
2020-03-09 11:53:14 +02:00
Nick Boldt 682e4f14b4
bump to latest... (#181)
* bump to latest registry.access.redhat.com/ubi8-minimal:8.1-398

Change-Id: I5a648aba1bca8c9dbacdff0bcf4722684d27a78a
Signed-off-by: nickboldt <nboldt@redhat.com>

* run olm/update-nightly-olm-files.sh to generate fresh 9.9.9 csvs and diffs

Change-Id: I623fc973285cbdc0548143abe90e4df7f108dff4
Signed-off-by: nickboldt <nboldt@redhat.com>
2020-03-04 12:07:28 -05:00
Igor Vinokur f288238f37
Propagate custom public certificates to volume mount (#171) 2020-03-04 10:53:33 +02:00
Anatolii Bazko e1c8c87399
Release 7.9.0 (#179)
* Update defaults tags to 7.9.0
* Update nightly olm files
* Release OLM files to 7.9.0

Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-02-24 16:46:39 +02:00
Oleksandr Andriienko e9c5d3f312
feat: Remove image refs in `defaults.go` and replace by env vars (#172)
* Move image related default variables to the operator env.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>

* Fix tests.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>

* Use the same env name for CRW and Upstream Che

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>

* Clean up.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>

* Improve most che-operator env names

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>

* Use cheImage instead of repo only in the envs. Rename cheImageTag to cheVersion.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>

* Add forgotten che-image tag to IMAGE_default_che_server

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>

* Add some logic for back compatibilty with Che 7.8.0

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>

* Handle one of the realese scripts.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>

* Fix GetFullCheServerImageLink

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

* Remove extra_images.go

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

* Fix tests

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

* Improve release scripts.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>

* Add docker images env to operator-local.yaml

Signed-off-by: flacatus <flacatus@redhat.com>

* Che 15874 - fix wrong docker images and update olm files (#174)

* Fix wrong docker images values

The docker images set in this GH repo should be the upstream ones,
not the CRW ones

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

Co-authored-by: Anatolii Bazko <abazko@redhat.com>
Co-authored-by: Flavius Lacatusu <59865209+flacatus@users.noreply.github.com>
Co-authored-by: David Festal <dfestal@redhat.com>
2020-02-18 10:17:21 +02:00
Anatoliy Bazko 9b97299a2a Fix CR to use quay.io/eclipse/che-keycloak:nightly
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
2020-01-29 09:44:01 +02:00
David Festal 15b75be25c
Fix crd inconsistencies (#145)
* Fix inconsistencies between Go API and CRD
* Update nightly OLM files vs last CRDs

Signed-off-by: David Festal <dfestal@redhat.com>
2020-01-11 11:38:53 +01:00
Igor Vinokur 2e47c33317
Add missing separating spaces to che_crd.yaml (#143)
The gitSelfSignedCert item has incorrect description format. This fixes the formatting and prevents an error:
2019-12-26 15:00:08 +02:00
Igor Vinokur c6737105d6
Support git self-signed SSL certs (#142)
Add new boolean property gitSelfSignedCertthat applies environment variables that contain SSL certificate and git host written from che-git-self-signed-cert config map.
The same logic is applied for the helm deployment: eclipse/che#15218

fixes eclipse/che#15285

Docs PR: eclipse/che-docs#1001

Signed-off-by: Igor Vinokur <ivinokur@redhat.com>
2019-12-26 10:23:11 +02:00
David Festal 37d0f4bfca
Fix a CRD change that is incompatible with OS 3.11 (#140)
* Fix a CRD change that is incompatible with OS 3.11
* Update Readme

Signed-off-by: David Festal <dfestal@redhat.com>
2019-12-16 14:56:57 +01:00
Michal Vala 8ee9b4ea58
Support workspace namespace configuration (#136)
Signed-off-by: Michal Vala <mvala@redhat.com>
2019-12-04 14:30:24 +01:00
Michal Vala f94a7a46f5
add missing license headers (#135)
Signed-off-by: Michal Vala <mvala@redhat.com>
2019-11-29 10:28:36 +01:00
Michal Vala a85031793a
Option to enable che-server metrics endpoint (#117)
Signed-off-by: Michal Vala <mvala@redhat.com>
2019-11-28 23:05:28 +01:00
David Festal d273007e7e Fix the Openshift OAuth provisioning for CRW, and move provisioning files (#122)
* Fix the oauth_provision file for CRW

- Replaces `jq` tool calls by equivalent `sed` calls
- Moves the `xxx_provision` files out of `deploy` (more for yamls) (should fix new issue https://issues.jboss.org/browse/CRW-482 at the same time)
- Replace a hard-coded value of the clientId (`che-public`) in the `token-exchange` feature on CRW
- Correctly enables the RHSSO preview features required for `token-exchange` (the way to activate them slightly differs from the upstream Che case)

Signed-off-by: David Festal <dfestal@redhat.com>
2019-11-15 11:40:40 +01:00
Sergii Leshchenko 4d15f5df2b Use common PVC strategy by default 2019-11-12 15:23:59 +02: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
David Festal 3360525412
Enable token exchange (#84)
* Enable the `token-exchange` preview KC feature
* Add what should be done on the Che side
* Automatic token-exchange permissions config
* fix oauth provision script
* Fail-safe removal of the `openshift` id provider
* Fix possible inconsistencies in OS OAuth status
* Update README.md according to suggestion
Co-Authored-By: Robert Krátký <rkratky@redhat.com>

Signed-off-by: David Festal <dfestal@redhat.com>
2019-09-24 10:17:28 +02:00
David Festal 387cbeccd6 Don't hard-code the `che` realm !
Signed-off-by: David Festal <dfestal@redhat.com>
2019-09-10 09:19:02 -04:00
Sergii Leshchenko 0a2c701444 Add permission to works with consolilinks on cluster scope
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-09-09 13:27:23 +03:00
David Festal 9682f3448f
Don't allow installing Che with Openshift Oauth when no OAuth user exist (#74)
* First round of impl in the Go code
* Correct management of the status
* Add `users` permisions in cluster role
* Upgrade `operator-sdk` CLI pre-req to `v0.10.0`
* Produce a CSV diff to help reviews
* fix trailing spaces that break `gen-csv` desc mgt
* Update nightly CSVs
* Add the new OLM descriptors in the new nightly CSVs

Signed-off-by: David Festal <dfestal@redhat.com>
2019-09-02 18:47:30 +02:00
John Collier 11a60f310f Fix typo in CheCluster CR yaml (#65)
* Fix typo in CheCluster CR yaml

Signed-off-by: John Collier <John.J.Collier@ibm.com>

* Fix unintentional changes in CheCluster CR

Signed-off-by: John Collier <John.J.Collier@ibm.com>
2019-08-07 16:49:21 -04:00
Nick Boldt d16dd077d1 remove DefaultCodereadyPluginRegistryUrl from pkg/deploy/defaults.go and pluginRegistryUrl from deploy/crds/org_v1_che_cr.yaml as these are no longer used/needed (#58)
Change-Id: I8bf17e40d7ed55c30fe28f640614fe6202cf66a5
Signed-off-by: nickboldt <nboldt@redhat.com>
2019-07-26 13:38:43 +02:00
David Festal 40974d5a02
Add the `read-token` role by default for new users (#56)
* Add the `read-token` role by default for new users

Signed-off-by: David Festal <dfestal@redhat.com>
2019-07-24 20:03:14 +02:00
David Festal 57dcfafc8b
Fix installation defaults for Chectl and OLM files. (#53)
* Make the example CR consistent with OLM files
* Add nighty registry images in the last nightly CSV for the `nightly` channel of the openshift preview OLM package

Signed-off-by: David Festal <dfestal@redhat.com>
2019-07-22 18:57:28 +02:00
David Festal 544d586322
Switch from `eclipse-che` org to `eclipse` (#50)
* Move the operator image to the `eclipse` org
* Various fixes after using it in this PR

Signed-off-by: David Festal <dfestal@redhat.com>
2019-07-16 18:27:57 +02:00
David Festal 4bf6621df1
Manage OLM files (PR #45)
Implementation of issue https://github.com/eclipse/che/issues/13780

* complete cluster role
* update operator.yaml
* Add OLM files for openshift in beta-5 state
* Add RC 2 release CSV
* Reordered beta 5 csv in alphabetic order
* Add first bits of OLM files management
* lowercase `RC` and remove readiness probe
* pre-release (with `rc-2.0`) and nightly channels
* Add the kubernetes version of the OLM package
* Adding operator sources
* `OperatorSource`s should be in distinct namespaces
* Change proposed by @l0rd
* scripts to update nightly CSVs
* script to release OLM files
* Add the script to push OLM files as Quay apps
* Add script to prepare `community-operators` PRs
* script to release the operator Go code
* Rename `*-test-*` to `*-preview-*` and rename the `pre-releases` channel to `stable`
* `9.9.9` as semver-compliant prefix for nightlies

Signed-off-by: David Festal <dfestal@redhat.com>
2019-07-15 15:39:47 +02:00
Mario Loriedo a02ad11dfa Update the operator image 2019-06-20 00:22:46 +02:00
David Festal fdd0f43d29
Support the new `openshift-v4` identity provider (#34)
* Support the new `openshift-v4` identity provider
* Add permissions for the Openshift v4 provider and reduce
the requested permissions to manage the OAuth client
2019-06-18 19:05:02 +02:00
John Collier 30740e8154 Add field for workspace cluster role to operator (#29)
* Add field for workspace cluster role to operator
* Update Che controller test to verify custom role.

Signed-off-by: John Collier <John.J.Collier@ibm.com>
2019-06-04 11:44:52 +02:00
David Festal cbfb771f07
Fix Che operator to upgrade to 7.0.0-beta-5.0 (#30)
* Use `7.0.0-beta-5.0` Keycloak docker image
* use `/scripts` as home dir for `kcadm`
* Add `runAsUser` on Postgres for k8s
* Update k8s security context from upstream
* update the CR with security context settings
* Fix a bug with `openshiftoAuth: true` on K8S

Signed-off-by: David Festal <dfestal@redhat.com>
2019-06-04 11:40:52 +02:00
nickboldt 7572b31fc2 CRW-280 use registry.redhat.io (authenticated) instead of registry.access.redhat.com (non-auth'd); also new server image is registry.redhat.io/codeready-workspaces/server-rhel8, not just /server
Change-Id: I247e6db78cc71d53e385e5ef830234580b3b34bd
Signed-off-by: nickboldt <nboldt@redhat.com>
2019-05-15 13:55:03 -04:00
John Collier 25ef5ddb5c Use extensions apiGroup instead of extensions/v1beta1 (#17)
Signed-off-by: John Collier <John.J.Collier@ibm.com>
2019-05-14 17:00:22 +03:00