Commit Graph

34 Commits (557860435bb41336e1eee0917ce07eb508c4e12f)

Author SHA1 Message Date
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
eivantsov 8396830a90
fix field name
Use identityProviderImage instead of keycloakImage
2019-05-11 19:42:59 +03:00
nickboldt 601c0a2d24 add notes about postgresql-96-rhel7 tag used in various places
Change-Id: I3d84165a93bb8d329670bc7a89b5c26a37c90aeb
Signed-off-by: nickboldt <nboldt@redhat.com>
2019-05-07 08:18:52 -04:00
Eugene Ivantsov 8ccdb82147
Update service and route create functions. Make mem setting for server deployment configurable (#16) 2019-04-24 17:45:16 +03:00
Eugene Ivantsov 585106b2db Fix json tag 2019-04-17 08:37:42 +03:00
Eugene Ivantsov 2426068f65
Rename json tags. Update upstream image tag. Remove CRW olm yamls (#13)
* Renamed json tags. Updated upstream image tag. Removed CRW olm stuff
2019-04-13 09:03:46 +03:00
Eugene Ivantsov 9dc8a3c50b
Add finalizers. Make storageclass configurable. More tests (#12)
* Add finalizers. Make storageclass configurable. More tests

* Fix logs
2019-04-09 16:03:51 +03:00
Eugene Ivantsov ad6b2a3a21
Auto fetch crt. Introduce e2e tests (#8) 2019-04-05 16:17:01 +03:00
Eugene Ivantsov bb1034b380 More tests. New defaults. Custom CM. Updates to README 2019-03-27 20:09:03 +02:00
Eugene Ivantsov 48db0ea5b8 Add docs 2019-03-22 11:02:34 +02:00
Eugene Ivantsov 32b8e15939 Update to 0.5.0. Use CRDs 2019-03-20 09:33:06 +02:00
Eugene Ivantsov 8432ba2998 Remove all 2019-03-19 15:58:04 +02:00
Eugene Ivantsov 047cbc2f4c Add Kube API crt to Keycloak truststore by default 2019-02-07 14:42:15 +02:00
Eugene Ivantsov c40ebd530a Update labels. Update relam display name 2019-02-07 14:07:03 +02:00
Eugene Ivantsov ee7364a153
Use eclipse-image 2019-01-30 14:22:26 +02:00
Eugene Ivantsov 914e92e4e6
OpenShift/K8S Operator (#3)
* Vendor dependencies

* OpenShift/K8S Operator

* Disable ssl for realm by default

* Fix ssl for realms. Create view role
2019-01-30 11:54:38 +02:00