53 Commits

Author SHA1 Message Date
Manuel Alejandro de Brito Fontes
692963d2e9
Update containerd and buildkit go modules (#19376)
* Update containerd and buildkit go modules

* Fix build

* Fix typecheck errors

---------

Co-authored-by: Thomas Schubart <thomas@gitpod.io>
2024-02-01 20:22:44 +02:00
Huiwen
700b6050ba
Make db waiter to wait latest migration (#18455)
* Make db waiter to wait latest migration

* Move generate out of build

* Remove conn require

* Allow to ignore migration check

* Use shell

* Use fail and remote useless log

* Generate service-waiter txt when create migration

* Revert "Generate service-waiter txt when create migration"

This reverts commit 11c12b83544a448f9784f8aa94cdfd69cfb15f45.

* Add log
2023-08-10 13:51:36 +02:00
Milan Pavlik
dcad4dce4e
[usage] Mutex jobs redis WEB-266 (#17167)
* fix

* Fix

* fix

* fix

* Fix

* Comment out test to see if testcointer breaks CI

* fix

* fix

* fix

* add ctx to func
2023-05-03 15:01:41 +08:00
Milan Pavlik
bce4700f97
[installer] Remove payment endpoint - WEB-144 (#17233)
* [installer] Remove payment endpoint

* fix

* fix

* Fix
2023-04-17 19:48:49 +08:00
Milan Pavlik
41c14a137c
[usage] Add server address to config - WEB-94 (#17094)
* [usage] Add server address to config

* Fix

* Fix
2023-04-11 10:42:50 +02:00
Manuel Alejandro de Brito Fontes
97f8d4b802
Ensure the spread of pods on different nodes (#16810)
* Ensure the spread of pods on different nodes

* Replace string ClusterFirst

* Replace Always string in DNSPolicy

* Fix registry-facade affinity

* Fix ws-proxy affinity

* Address feedback

* Update golden files
2023-03-15 10:21:07 +01:00
Milan Pavlik
66aebf3943
[installer] Remove slowserver (#16449)
* [proxy] Remove slow-server config

* [installer] Remove slowserver
2023-02-27 13:36:57 +01:00
Milan Pavlik
08504033f4 [installer] Reduce duplication when extracting experimental webapp config 2023-01-11 15:46:51 +01:00
Sven Efftinge
aaa0653d54 [ubp] reset usage on chargebee cancellation 2022-12-15 12:32:25 -03:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Andrew Farries
9a327d872c Update usage networkpolicy
Allow ingress to `usage` from `slow-server`.
2022-12-05 13:23:15 -03:00
Tarun Pothulapati
c2eb0c15d1 [installer] manually set allowPrivilegeEscalation to false
This PR manually sets the `allowPrivilegeEscalation` container
config to false where we don't need extra capabilities. This
is needed as not setting this explicitely could mean that
it could still be `true` based on other settings.

This also helps us future proof on any behaviour changes around
this.

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-12-05 06:28:15 -03:00
Laurie T. Malau
ee08e7863c [db] Move db models to gitpod-db/go module 2022-11-21 08:37:50 -03:00
Milan Pavlik
fb29551aa8 Revert "[usage] Deploy usage by default"
This reverts commit 6c1994cd3fb3c66e3cb1da2520f24c4298c72c76.
2022-11-16 18:18:46 +02:00
Milan Pavlik
6c1994cd3f [usage] Deploy usage by default 2022-11-16 14:04:46 +02:00
Laurie T. Malau
c9496a034a [installer] Update installer to use credits config 2022-11-14 13:02:44 +02:00
Milan Pavlik
603af782bb [usage] Fix config binding 2022-11-04 15:03:09 +01:00
Milan Pavlik
76424a4b49 [usage] Make reset usage task configurable through installer 2022-11-03 09:50:07 +01:00
Laurie T. Malau
ee8354aa79 [usage] Implement CreateStripeSubscription 2022-11-01 16:15:06 +01:00
Milan Pavlik
7532f3c15f [usage] Setup usage reset job 2022-10-26 14:46:41 +02:00
Milan Pavlik
7a5f156f5a [usage] Configure Stripe Price IDs through installer 2022-10-25 21:53:40 +02:00
Milan Pavlik
af51108003 [usage] Set configmap hash on deployment 2022-10-17 09:39:32 +02:00
Milan Pavlik
f626371eaf [usage] Validate spending limits in UpdateCostCenter 2022-10-13 14:00:29 +02:00
Sven Efftinge
2701ec7bdc [usage] added costcenter nextBillingTime 2022-09-15 19:18:16 +02:00
Simon Emms
2f03c004a7 [installer]: explicitly set all host addresses to 0.0.0.0 2022-09-13 12:38:14 +02:00
Milan Pavlik
e85ad2a595 [usage] Remove unused config and functions 2022-09-12 08:35:13 +02:00
Milan Pavlik
6045af2d5e [usage] Remove default controller schedule of 1h, prevents disabling in US 2022-09-09 07:20:23 +02:00
Milan Pavlik
9cab00ae89 [biling] Remove UpdateInvoices - old reconciler 2022-09-08 16:38:23 +02:00
Milan Pavlik
30b274ae55 [usage] Add config for experimenets to usage component 2022-08-26 18:12:11 +02:00
Manuel Alejandro de Brito Fontes
64b4d6fcf9 Fix typecheck errors 2022-08-23 08:18:39 +02:00
Andrew Farries
066f7c0e8d Update usage component networkpolicy
Allow ingress from the public api server so that the Stripe webhook can
invoke RPCs on the usage component.
2022-08-10 15:55:56 +02:00
Simon Emms
2fd3dd3586 [installer]: remove the custom labels from the selector labels 2022-08-09 04:16:53 -03:00
Andrew Farries
ba65d4ab2e [installer] Support setting billInstancesAfter
Add the ability to set the usage controller `BillInstancesAfter` config.
2022-08-05 09:52:49 -03:00
Andrew Farries
2eff43ca33 Use net.JoinHostPort instead of Sprintf 2022-07-25 05:56:20 -03:00
Andrew Farries
01af2de26b Rename ContentServiceUrl to ContentServiceAddress 2022-07-25 05:56:20 -03:00
Andrew Farries
717810a0ba Make installer write content-service URL
Populate the usage component's config file with the URL of the
in-cluster content-service.
2022-07-25 05:56:20 -03:00
Gero Posmyk-Leinemann
d1c412edc2 [server] Hook up usage API 2022-07-13 12:09:00 +02:00
Milan Pavlik
48411d7cfb [usage] Workspace Pricer uses config 2022-07-13 08:49:59 +02:00
Andrew Farries
f166459010 Remove json key from test expectation 2022-07-11 13:50:58 +05:30
Andrew Farries
f3fe54c907 Add networkpolicy for the usage component 2022-07-11 13:50:58 +05:30
Andrew Farries
30a309a45f Add service for usage component
Add a service for the gRPC port exposed by the usage component.
2022-07-11 13:50:58 +05:30
Andrew Farries
68d95a5734 Add gRPC config to usage configmap 2022-07-11 13:50:58 +05:30
Milan Pavlik
e8ab39e3e7 [usage] Use a config file to configure usage component 2022-07-04 20:44:51 +05:30
Andrew Farries
95e32871e0 [usage] Make Stripe payment integration optional
Enable stripe integration iff a Stripe secret is configured.
2022-06-27 11:46:35 +05:30
Simon Emms
8fad588e6b [installer]: add customization functions to components 2022-06-24 17:02:33 +05:30
Andrew Farries
b683410ca5 Pass command line flag to usage run
Set the value of `--schedule` to the value from the configmap.
2022-06-21 15:24:30 +05:30
Andrew Farries
242e32d0e5 Add tests for usage configmap rendering
Refactor tests to allow arbitrary UsageConfig structs when setting up
the render context.
2022-06-21 15:24:30 +05:30
Andrew Farries
45768b76b5 Make installer render usage configmap 2022-06-21 15:24:30 +05:30
Andrew Farries
18cf092586 Mount stripe secret into usage component
The component will need to interact with the stripe api so will need API
keys.
2022-06-14 19:36:24 +05:30
Manuel Alejandro de Brito Fontes
624021f2f2 Simplify configuration of KubeRBACProxyContainerWithConfig and remove collision 2022-06-03 18:07:52 +05:30