Commit Graph

48 Commits (a4e19ead9d324dce09f5ca400a5cb7eff3abd253)

Author SHA1 Message Date
Samantha Dawley 95351dfad4
Updating go (to match Dockerfile) and golang.org/x/net (#1772)
* Updating go and golang.org/x/net

* Add vendor updates

* Reverting change of go version since tidy only supports 1.18

* Update additional files to use go 1.19.13

* ran update-go-dependencies

* run 'make fmt' to fix formatting issues

Change-Id: I6280c8b6851d83ec69d7d9898ae48ae583dc2dfe
Signed-off-by: Nick Boldt <nboldt@redhat.com>

---------

Signed-off-by: Nick Boldt <nboldt@redhat.com>
Co-authored-by: Nick Boldt <nboldt@redhat.com>
2023-10-31 16:48:38 +01:00
Angel Misevski fb972f93e7 Upgrade DWO dependency to v0.23.0
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2023-10-19 13:10:10 -04:00
Andrew O 923972e91e
feat: upgrade to DWO 0.22.0 (#1736)
* feat: upgrade to DWO 0.22.0

Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>

* chore: run go mod vendor

Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>

---------

Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>
2023-07-19 10:43:47 +02:00
Angel Misevski 02ce7749f0
Add fields for configuring project clone container to CheCluster CRD (#1687)
* Update devworkspace-operator dependency version to v0.21.0

Update devworkspace-operator dependency to v0.21.0 and update vendor dir

Signed-off-by: Angel Misevski <amisevsk@redhat.com>

* Add project clone container config field to CheCluster CR

Add field .spec.devEnvironments.projectCloneContainer to allow
configuring image, env, resources, and pull policy for the project clone
container.

This change reuses the existing Container struct for storing this
config, which means that

* The name field is ignored (it appears to be a discriminator for the
  Deployment struct's containers[] field
* Defaults are handled differently:
  * Default imagePullPolicy is the general pull policy for DWO, with
    default value "Always" (instead of depending on tag as documented)
  * Resource requirements set to "0" are interpreted as "do not set this
    field"

Signed-off-by: Angel Misevski <amisevsk@redhat.com>

* Add reconcile step that syncs CheCluster project clone to DevWorkspace

Sync the field CheCluster.devEnvironments.projectCloneConfig to the
DevWorkspaceOperatorConfig owned by the operator.

Update tests to cover new functionality.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>

---------

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2023-05-31 09:58:50 +03:00
Anatolii Bazko fb6bccfd61
feat: Update Dev Workspace Operator v0.20.0 (#1660)
* feat: Update Dev Workspace Operator v0.20.0

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

* Restore replaces in go.mod

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

* Restore replaces in go.mod

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

* chore: update DEPENDENCIES.md (#1661)

Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>

* Update DEPENDENCIES.md

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

---------

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>
Co-authored-by: Andrew O <aobuchow@redhat.com>
2023-04-14 16:14:30 +03:00
Anatolii Bazko 239b5362ae
feat: Propagate kubernetes root certificate to che components (#1637)
* feat: Propagate kubernetes root certificate to che components

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-03-14 07:45:27 +02:00
dependabot[bot] 1aac15cfb9
chore(deps): bump golang.org/x/net from 0.2.0 to 0.7.0 (#1621)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.2.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.2.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-20 09:09:06 +02:00
Anatolii Bazko 149a39fe75
feat: Update DWO v0.18.0 (#1586)
* feat: Update DWO v0.18.0

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2022-12-22 15:02:45 +02:00
Anatolii Bazko 783d35046c
feat: Use a pre-created ServiceAccount for workspace Pods (#1569)
* feat: Use a pre-created ServiceAccount for workspace Pods

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2022-12-07 15:25:01 +02:00
Anatolii Bazko 21b652e2c4
feat: Automatically create the container build SCC if containerBuildC… (#1542)
* feat: Automatically create the container build SCC if containerBuildCapability is enabled

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2022-10-18 10:07:01 +03:00
Anatolii Bazko 61a89f7670
chore: default VSX registry should be open-vsx.org (#1484)
* chore: default VSX registry should be openvsx.org

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2022-08-17 15:44:35 +03:00
Angel Misevski 47a9998845
chore: Bump DevWorkspace Operator dependency to v0.15.2 (#1454)
* Bump DWO dependency to v0.15.2

Signed-off-by: Angel Misevski <amisevsk@redhat.com>

* Vendor changes from updating DWO dependency

Signed-off-by: Angel Misevski <amisevsk@redhat.com>

* Regenerate files after changes

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2022-07-23 17:15:20 +03:00
Angel Misevski 28e8e8246c
chore: Bump DevWorkspace Operator dependency to v0.14.1 (#1376)
* Bump DevWorkspace Operator dependency to v0.14.1
* Vendor changes from updating DWO dependency to v0.14.1

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Co-authored-by: Anatolii Bazko <abazko@redhat.com>
2022-05-06 15:46:43 -04:00
Angel Misevski 960953e348 chore: Bump DevWorkspace Operator dependency to v0.13.0
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2022-03-04 13:39:26 -05:00
Angel Misevski dcffa0189e
chore: Update DevWorkspace Operator dependency to v0.12.3 (#1306)
* Update DevWorkspace Operator dependency to v0.12.3

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Co-authored-by: Anatolii Bazko <abazko@redhat.com>
2022-02-02 12:19:42 +02:00
Anatolii Bazko 4f08657509
chore: Drop backup/restore functionality (#1300)
* chore: Drop backup/restore functionality

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2022-02-01 15:51:26 +02:00
Angel Misevski c81c737d81
chore: Update DevWorkspace Operator dependency to v0.12.2 (#1302)
* Update DevWorkspace Operator dependency to v0.12.2

Signed-off-by: Angel Misevski <amisevsk@redhat.com>

* Update vendor directory to include DWO v0.12.2

Signed-off-by: Angel Misevski <amisevsk@redhat.com>

* Adapt Che routing solver to DevWorkspace Operator changes

Adapt code in Che RoutingSolver to accomodate changes in DWO that
disconnect DevWorkspaceRouting resources from the upstream Devfile API

Signed-off-by: Angel Misevski <amisevsk@redhat.com>

* Set Go version to 1.16

Signed-off-by: Angel Misevski <amisevsk@redhat.com>

* Update all Go images used to use Go 1.16

Signed-off-by: Angel Misevski <amisevsk@redhat.com>

* Set up Go to use 1.16 in PR check GitHub actions

Signed-off-by: Angel Misevski <amisevsk@redhat.com>

* Update RBAC

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2022-02-01 10:46:21 +02:00
disaster37 7f8b40d06f
fix: ingress annotation when single-host and gateway exposure (#1200)
* fix: ingress annotation when single-host and gateway exposure

Signed-off-by: disaster37 <linuxworkgroup@hotmail.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-12-17 17:09:32 +02:00
Lukas Krejci 0e72bb2ca8
Sync the certificate from che-git-self-signed-cert to user namespaces (#1222)
feat: Sync the git tls certificate configuration in a format digestable by DWO.

Other slightly related changes:
* Make sure the version content annotations survive across multiple conversions
between v1 and v2alpha1.
* Add DWO watch labels so that our stuff is picked up.
* irifrance/gini has moved to go-air/gini
2021-12-15 15:41:55 +01:00
Nick Boldt e3b6d1b8d1
chore: make all *.sh scripts executable (#1199)
Change-Id: I5e507fd0d71de5d362b2777ba25459806ae1d8cc
Signed-off-by: nickboldt <nboldt@redhat.com>
2021-11-26 09:09:54 +02:00
Anatolii Bazko e1b4541ed2
chore: Refactoring OpenShift Initial user reconciler (#1152)
* chore: refactoring OpenShift OAuth User

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Co-authored-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-11-04 17:42:49 +02:00
Sergii Leshchenko 5e7dc085d4 fix: update go.sum and vendor folder 2021-10-06 12:56:46 +03:00
Oleksandr Andriienko e1370708b7
feat: Add `Dependencies.md` with list of runtime dependencies (#1121)
* feat: Add Dependencies.md with list of runtime dependencies 

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-10-05 15:12:57 +03:00
Oleksandr Andriienko b8cc02bf9a
feat: Update controller runtime (#1064)
* Update controller runtime for che-operator and related deps.
Controller runtime update to version v0.9.5
go-client update to version v0.21.3
Udaptated tests to the new controller runtime and go-client.
Use newer image puller.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-10-01 14:54:37 +03:00
Lukas Krejci 5e657f876b
feat: Syncing of proxy settings and self-signed cert to the user's workspace namespace (#1027)
Syncing of proxy settings and self-signed cert to the user's workspace namespace.

Co-authored-by: Michal Vala <mvala@redhat.com>
Co-authored-by: Serhii Leshchenko <sleshche@redhat.com>
2021-09-21 21:00:53 +02:00
Flavius Lacatusu ff8d7c9ee4
fix: Deprecate devworkspace engine from stable/latest channel (#1065)
* chore: Deprecate devworkspace engine from stable/latest channel

Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
Co-authored-by: Anatolii Bazko <abazko@redhat.com>
2021-09-20 11:27:57 +03:00
Mykola Morhun a1f30c3356
Create backup on each update (#1055)
Create backup on update operator 

Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
2021-09-15 15:38:58 +03:00
Sergii Leshchenko 2283654819 Update vendor with updated DWO 2021-08-26 16:03:30 +03:00
Lukas Krejci 456743ce01
feat: Import Devworkspace Che Operator (#925)
* Import of DWCO into CO.

Co-authored-by: Anatolii Bazko <abazko@redhat.com>
Co-authored-by: Michal Vala <mvala@redhat.com>
2021-08-11 15:07:44 +03:00
Oleksandr Andriienko f555494a7d
feat: Newer operator sdk (#826)
* Define new dependencies. Update vendor folder. Use newer operator sdk v1.7.1.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-07-19 14:29:11 +03:00
David Kwon cab8b92213 feat: set RELATED_IMAGES images to image puller spec as defaults
Signed-off-by: David Kwon <dakwon@redhat.com>
2021-07-13 13:37:03 +02:00
Lukas Krejci b2f4f44f45
chore: Define CheCluster v2alpha1 (#843)
Implements eclipse/che#19846.

Defines a new version of the CheCluster custom resource and implements
conversion functions from and to v1. The v2alpha1 is intentionally NOT
part of the CRD yet and is meant to be used only at runtime by
the operator code.
2021-06-07 12:55:14 +02:00
Anatolii Bazko eefe1952b4
chore(Dockerfile): Switch to go 1.15 (#848)
* Switch to go 1.15

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-05-28 11:19:14 +03:00
Anatolii Bazko 0d0056bb7a
Use CRD v1 of DWCO resources (#788)
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-04-20 11:31:34 +03:00
Lukas Krejci 92d317caf5
Use v1beta1 api for the chemanager crd. (#757)
* Fixes eclipse/che#19500. Use v1beta1 api for the chemanager crd.

* Update olm.
2021-04-07 10:49:01 +03: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
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
Anatolii Bazko 5ae85f9ac7
Revert golang version to 1.13 (#617)
* Revert golang to 1.13

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2021-01-11 13:14:17 +02:00
Nick Boldt 1c4030a696
latest go in devtools/go-toolset-rhel7 is go... (#613)
* latest go in devtools/go-toolset-rhel7 is go 1.14, so use that

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

* Update go.mod

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

* Update modules.txt

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

Co-authored-by: Anatolii Bazko <abazko@redhat.com>
2021-01-08 09:24:49 -05: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
Tom George 24fb122aa8
Operator sdk 0.15.2 (#515)
Upgrade che-operator to use operator-sdk version 0.15.2 APIs, and newer kubernetes APIs

Signed-off-by: Tom George <tgeorge@redhat.com>
2020-11-11 11:15:55 -06: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
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
Sergii Leshchenko 5a72fd7471 Update vendor
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-09-09 13:27:23 +03: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
Eugene Ivantsov bc59de083a Update vendor 2019-03-19 15:59:09 +02:00
Eugene Ivantsov 8432ba2998 Remove all 2019-03-19 15:58:04 +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