Commit Graph

56 Commits (17fef8afeb286f37bcdfb3e7cd3b5cd79ffe5b7a)

Author SHA1 Message Date
Tom George 17fef8afeb Change tests so that they do not depend on hard coded image names (#108)
Signed-off-by: Tom George <tg82490@gmail.com>
2019-10-30 09:38:37 +01:00
nickboldt 6cb0325beb Revert "CRW-380 use quay.io/crw URLs since those exist, and the reg.rh.io ones do not yet exist"
This reverts commit 2043f598cb.
2019-10-29 17:08:00 -04:00
nickboldt 2043f598cb CRW-380 use quay.io/crw URLs since those exist, and the reg.rh.io ones do not yet exist
Change-Id: I2325cb543faaf2619ea2d4b400d3650d8a5c8121
Signed-off-by: nickboldt <nboldt@redhat.com>
2019-10-28 17:30:04 -04:00
Tom George bda521c3b2 Patch the PVC job image when in airgap (#103)
Signed-off-by: Tom George <tg82490@gmail.com>
2019-10-28 11:05:39 +01:00
Tom George 0e99d74385 Set CHE_DEVFILE_REGISTRY_URL to allow airgap operation (#102)
* Set CHE_DEVFILE_HTTPS_ENDPOINT and react to changes on it
* Change HTTPS_ENDPOINT to REGISTRY_URL
* Only set the devfile registry URL to the autogenerated one when we are not using an external devfile registry

Signed-off-by: Tom George <tg82490@gmail.com>
2019-10-28 10:07:55 +01:00
Ilya Buziuk 4b0b485ec6 che #14809 Enable CodeReady branding on the ConsoleLink elements created by the che operator with 'codeready' flavor
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
2019-10-25 12:49:45 +02:00
David Festal 46b19094b7 Update default tags to `7.3.0`
Signed-off-by: David Festal <dfestal@redhat.com>
2019-10-21 17:22:56 +02:00
Max Shaposhnik 8d520f3150 Fix property name to avoid JGroups4 warnings; (#98) 2019-10-18 14:42:07 +02:00
nickboldt d52c83feb5 upgrade to SSO 7.3.4 (CRW-202)
Change-Id: Ib8ea5638ca2b1cf8c4c344950637082b5e4c639b
Signed-off-by: nickboldt <nboldt@redhat.com>
2019-10-15 15:58:51 -04:00
Tom George 663d42264c Configure the operator to deploy airgapped versions of the devfile and plugin registries (#93)
* Add a script to generate extra_images.go, only add the extra images data to che configmap if we are in airgap mode
* Initial implementation of adding configmaps to registries
* Add owner reference to the configmap
* Update plugin and devfile registries when a change to either airgap property occurs

Signed-off-by: Tom George <tg82490@gmail.com>
2019-10-14 14:47:08 +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
Tom George 202b3e25b2 Add airgap mode (#91)
* Determine if we are in airgap mode and patch the images appropriately
* Do the rest of the images in the che deployment
* Add map of extra images for airgap
* Add a script to generate extra_images.go, only add the extra images data to che configmap if we are in airgap mode
* Download the release version of che.properties
* Remove unnecessary properties
* Remove airGapMode boolean, make it so that setting either the airGapHostname/Organization will start the deployment in airgap mode

Signed-off-by: Tom George <tg82490@gmail.com>
2019-10-11 18:19:38 +02:00
nickboldt 2bea267149 update to latest defaults postgres, keycloak/sso, and PVC/UBI images; add script to poll for new images automatically and offer changes to be committed
Change-Id: I7c59d3aa25b816d0787157c921bc594ac8019b86
Signed-off-by: nickboldt <nboldt@redhat.com>
2019-10-07 12:45:08 -04: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
Sergii Kabashniuk 2ba0cb15c4
Sync default properties with upstream (#86)
Removed some defaults to be closer to upstream configuration

CHE_PREDEFINED_STACKS_RELOAD__ON__START - not used in Che 7
CHE_WORKSPACE_AUTO_START - wrong parameter, has to be CHE_WORKSPACE_AUTO__START, upstream default value - true
CHE_INFRA_KUBERNETES_WORKSPACE__UNRECOVERABLE__EVENTS - upstream value FailedMount,FailedScheduling,MountVolume.SetUp failed,Failed to pull image,FailedCreate
CHE_LIMITS_WORKSPACE_IDLE_TIMEOUT - upstream value 1800000
CHE_INFRA_KUBERNETES_SERVICE__ACCOUNT__NAME - Not changed since it has NULL value in upstream. To remove it we need to investigate if it's safe to do or not.
2019-10-04 13:32:39 +02:00
David Festal c8a1d8f592
Release 7.2.0 (#85)
* Support tabs Go files
* Update default tags to `7.2.0`
* Release OLM files to `7.2.0`

Signed-off-by: David Festal <dfestal@redhat.com>
2019-10-03 10:25:09 +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
Lukas Krejci 3a28252487 Bring che operator in line with the latest changes coming to Che server (#73)
Bring che operator in line with the latest changes coming to Che server to support single-host mode.
2019-09-10 16:07:35 +02:00
David Festal a24ed3760a
Release 7.1.0 (#78)
* Fix the release script
* Update default tags to `7.1.0`
* Slightly fix the OLM release script to produce meaningful diffs
* Release OLM files to `7.1.0`

Signed-off-by: David Festal <dfestal@redhat.com>
2019-09-09 18:56:55 +02:00
Michal Vala a2aee2b212 use logo without text for consolelink
Signed-off-by: Michal Vala <mvala@redhat.com>
2019-09-09 15:00:00 +02:00
Sergii Leshchenko 5552439b71 Make Che Operator create consolelink if it's supported
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-09-09 13:27:23 +03:00
David Festal c0019f24c2
Add automatic redirect to the `openshift` provider (#75)
Signed-off-by: David Festal <dfestal@redhat.com>
2019-09-03 15:56:25 +02:00
David Festal 09a90beea6
Update identityProvider and postgres container images to latest defaults on Operator update (Fix #13714) (#72)
* Refactor defaults mgt for flavor-related props
* Don't update the CR with effective docker images
* Also redeploy Postgres when image changes
* Now correctly manage upgrade from 7.0.0 GA
* Wait for rolling update of secondary deployments

Signed-off-by: David Festal <dfestal@redhat.com>
2019-08-26 11:49:46 +02:00
nickboldt fbeb80885d update to newer versions of CRW, Che Server, Plugin Reg, Devfile Reg, PVC, Postgres, and SSO
Change-Id: I592e0d6093ab568d3f5ee5f023aaadd6ddf14664
Signed-off-by: nickboldt <nboldt@redhat.com>
2019-08-14 22:42:59 -04:00
David Festal 0757edd176
Release 7.0.0 (#69)
* Update default tags to `7.0.0`
* Release OLM files to `7.0.0`
* Channel was renamed to `stable` at `7.0.0` release

Signed-off-by: David Festal <dfestal@redhat.com>
2019-08-14 23:37:00 +02:00
David Festal 831a776b4e
Inconsistent probes prevented deploying on RHPDS (#67)
Signed-off-by: David Festal <dfestal@redhat.com>
2019-08-13 19:56:25 +02:00
David Festal ff0e032fb4
Fix Custom Resource update bugs and external registry URLs not taken in account (#63)
* Add both `https` and `http` redirect URLs in the `OAuthClient`
* Take registry URL settings into account
* Only update registry URLs in Status when necessary
* Update registry routes or ingresses when switching to TLS
* Restart pod on deployment-driving CR field change

Signed-off-by: David Festal <dfestal@redhat.com>
2019-08-12 16:25:07 +02:00
David Festal 952be135dc
Increase memory limit for registy containers (#64)
Signed-off-by: David Festal <dfestal@redhat.com>
2019-08-03 10:00:40 +02: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 d887a5093c
Allow configuring pull policy (with `Always` by default for nightlies) (#57)
* Add pull policies
* Add configurable pull policies for deployments in Che, Keycloak and Postgres deployments
* `Always` policy by default for `nightly`/`latest` images

Signed-off-by: David Festal <dfestal@redhat.com>
2019-07-26 13:33:08 +02:00
David Festal d0f171e4b0
Reintegrate the `7.0.0 rc 4.0` release branch to master (#59)
* update defaults to `7.0.0-rc-4.0`
* release OLM files to `7.0.0-rc-4.0`

Signed-off-by: David Festal <dfestal@redhat.com>
2019-07-26 13:23:00 +02:00
David Festal 3ccdf36c40
Fix registry labels and probes (#54)
Signed-off-by: David Festal <dfestal@redhat.com>
2019-07-23 11:15:59 +02:00
David Festal 8837474a0f
Include registries in Che deployment (#51)
* Update API
* Update defaults
* update controller
* Separate memory limits and requests as in PR https://github.com/eclipse/che/pull/13890/files#diff-a488b4bdede7547798a17f6830874b05R59
* update release script to also change default image tag of registry containers
* Also remove overridden `nightly` registry images
* Add registry nightly images in nightly OLM packages

Signed-off-by: David Festal <dfestal@redhat.com>
2019-07-19 17:27:57 +02:00
Lukas Krejci 28126447e5 Add support for configuring devfile registry. 2019-07-15 16:41:03 +02:00
David Festal 2f639261d8 Update to the `7.0.0-RC-2.0` release after some last fixes (#39)
* Make the OS 4 API url retrieval more robust

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

* Fix a bug when removing openshift v4 provider

On Openshift arbitrary user mode.

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

* Roll-update Keycloak when certificates changed

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

* Don't loose the controller ref on Keycloak update

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

* Remove the finalizer when disabling OS OAuth

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

* Upgrade defaults to `7.0.0-RC-2.0`

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

* fix wrong whitespaces

Signed-off-by: David Festal <dfestal@redhat.com>
2019-06-20 10:57:12 -04:00
David Festal 664b51bc85 Change an obsolete env variable
Signed-off-by: David Festal <dfestal@redhat.com>
2019-06-19 17:11:32 +02:00
David Festal 03d99e263e
Fix issue #32 by providing distinct defaults (#35)
Signed-off-by: David Festal <dfestal@redhat.com>
2019-06-18 19:18:29 +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
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 bfd906590e switch to registry.redhat.io for the ubi8-minimal, sso, and pg images
Change-Id: Ic557cda8c041e27730116c20595c900d6556125b
Signed-off-by: nickboldt <nboldt@redhat.com>
2019-05-31 14:43:30 -04:00
David Festal 92dc18f661
Update the plugin registry to v3 by default 2019-05-23 09:21:48 +02:00
nickboldt afb280d053 s/7.0.0-beta-4.0/7.0.0-beta-5.0/
Change-Id: Ic87e8875872390c1631b874942d90ac3bbfa2f9d
Signed-off-by: nickboldt <nboldt@redhat.com>
2019-05-22 12:47:01 -04: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
eivantsov 2ebbad53df
Update images. Update registry (#23) 2019-05-11 19:30:14 +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
Oleksandr Garagatyi 8c6b5aebfb
Update default plugin registry URL
Update default plugin registry URL since old value is no longer compatible with new wsmaster
2019-05-06 15:29:55 +03:00
nickboldt 8eee6514c9 bump to latest DefaultCheServerImageTag, DefaultCodeReadyServerImageTag; also pull newer DefaultPvcJobsImage, DefaultPostgresImage, and DefaultKeycloakImage to get CVE fixes
Change-Id: I2c001545706c7a1a3d6b042de2699dbf7888709d
Signed-off-by: nickboldt <nboldt@redhat.com>
2019-05-03 13:19:49 -04:00
Eugene Ivantsov 574b87c9a2
Auto fill non proxy with kube api url (#18) 2019-04-25 14:15:11 +03: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 63787372bd
Get crt of OpenShift baseURL for Keycloak (#14)
* Get crt of OpenShift baseURL for Keycloak

* Don't fails when rolling out router deployment
2019-04-19 14:40:49 +03:00