88 Commits

Author SHA1 Message Date
Kyle Brennan
58c9a1808a
[ws-manager-mk2] update to support k8s 0.30 API (#20580)
* [go components] Fixed "go test ./..." in various components

Tool: gitpod/catfood.gitpod.cloud

* [go components] Update k8s 0.29.3 -> 0.30.9 API

 - update the go-update-wc-deps.sh script to handle the brunt of that transition
 - fixes Maintenance- + Subscriber-Controller
 - document steps

Tool: gitpod/catfood.gitpod.cloud

* [ws-manager-mk2] Decide how to apply appamor config based on serverversion to support k8s 1.30+

Tool: gitpod/catfood.gitpod.cloud

* [gpctl] Missing go mod tidy

Tool: gitpod/catfood.gitpod.cloud

* Replace vulnerable outcaste-io/badger/v3 with original dgraph-io/badger/v3

Tool: gitpod/catfood.gitpod.cloud

* more go mod tidy

Tool: gitpod/catfood.gitpod.cloud

* [image-builder-bob, installer] Select the correct version of containerd....

Tool: gitpod/catfood.gitpod.cloud

---------

Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
2025-02-07 03:58:22 -05:00
Gero Posmyk-Leinemann
dfb6b6d6cb
[usage, server, dashboard] Remove ff usage_update_scheduler_duration (#19914)
* [usage, server, dashboard] Remove ff usage_update_scheduler_duration

* spelling improvement

Co-authored-by: Filip Troníček <filip@gitpod.io>

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>
2024-06-20 12:29:15 +02:00
Gero Posmyk-Leinemann
2686bc2f47
[server, bridge] Bump grpc-js and authzed clients (#19849)
* [yarn] Bump @grpc/grpc-js to 1.10.8 and @authzed/authzed-node to 0.15.0

* [server] SpiceDB: explicit re-try on UNAVAILABLE

We tried to configured this inside the SpiceDBClientProvider already, but somehow it still surfaced.

* [server, bridge] Configure "grpc.dns_min_time_between_resolutions_ms" to be 2s instead of 30s
2024-06-06 13:57:19 +08:00
Manuel Alejandro de Brito Fontes
5992b0f614
Update go dependencies (#19577)
* Update go dependencies

* Update S3

* Caddy plugins cannot use 1.22

* Update controller runtime signatures

* Update webhook suite test

* Update IPFS signatures

* Update go modules

* Update ipfs-cluster to v1.0.8

* Fix node-labeler build

* Fix IPFS CID parsing

* Update ipfs-cluster version

* Update controller-runtime signature

* Update statefulset signature

* Disable controller-runtime metrics

* Add comments
2024-03-26 20:55:35 +01:00
Jean Pierre
d0b5b873ec
Add invalid billing address notification (#19349)
* Add webhook events

* Properly set AutomaticTax

* Use address element

* 💄

* Update susbcription on address update

* Try scroll modal

* Fix

* try fix modal scroll

* Add toast notification

* Add invalidBillingAddress column to d_b_stripe_customer

* 💄

* 💄

* Fix

* Try fix update

* Address feedback
2024-01-29 11:12:05 +02:00
Manuel Alejandro de Brito Fontes
8ef82ff356
Update go modules to 1.21 (#18805) 2023-09-26 17:52:05 +03:00
Sven Efftinge
3a07121763
[fga] add relationship update job (#18671) 2023-09-07 06:11:03 +02:00
Gero Posmyk-Leinemann
44688ce840
[proto] Add usage-api to leeway run components:generate-code-from-protobuf (#18672) 2023-09-06 17:07:03 +02:00
Sven Efftinge
841b616c34
[spicedb] fix stale connection handling (#18631) 2023-09-01 12:53:58 +02:00
Jean Pierre
c402032d0c
Update protobufjs lib (#18605) 2023-08-29 19:54:55 +02:00
Sven Efftinge
667bd2f005
[usage] add optional UserID to filter usage (#18449) 2023-08-08 07:46:33 +02:00
Manuel Alejandro de Brito Fontes
8c6d8e28f3
Update dependencies (#18362)
* Update k8s dependencies to v1.27.3

* Update opencontainers/runtime-spec to v1.1.0

* Update controller runtime to v0.15.0

* Update go modules

* Fix build

* Cleanup

* Fix ws-manager e2e tests
2023-07-27 23:34:29 +08:00
Manuel Alejandro de Brito Fontes
54c2040632
Update go modules to 1.20 (#18360) 2023-07-27 22:24:29 +08:00
Gero Posmyk-Leinemann
cc52d25280
Upgrade yarn packages (#18128)
* [ts] Pin mimimatch and minimist

* [server] Update minio

* [ts] Remove superfluous node-pre-gyp dep

* [ts] Pin jsonwebtoken to 9.0.0

* [grpc] Update grpc-toolsis

* [ts] Upgrade from mocha-typescript to  @testdeck/mocha

* fix rimraf
2023-07-03 14:47:19 +08:00
Brad Harris
2eaf257d89
removing setup intent related code (#17539) 2023-05-10 01:41:54 +08:00
Brad Harris
0f88afefb8
adding backend support for payment intents (#17309)
* adding support for payment intents

* support payment intents in server

* handling new arg

* adjust hold to be 1.00

* removing old comment
2023-04-22 03:05:42 +08:00
Manuel Alejandro de Brito Fontes
891cd5417d
Update k8s dependencies to v0.26.2 (#17211)
* Update k8s dependencies to v0.26.2

* Update controller-runtime to v0.14.6

* Update cloud storage
 https://github.com/googleapis/google-cloud-go/issues/6857

* Update copy options

* Update wolfi image

* Remove controller-runtime replace directives

* Fix integration tests
2023-04-18 03:59:49 +08:00
Milan Pavlik
c0cd571e78
[usage] Add OnChargeDispute rpc definition (#17036)
* [usage] Add OnChargeDispute rpc definition

* [public-api] Setup handler for charge.dispute.created (#17034)

* [public-api] Setup handler for charge.dispute.created

* fix

* fix

* fix
2023-03-27 15:59:25 +02:00
Milan Pavlik
c0a5b9a08c
[stripe] Attach billing creator user id to Stripe customer (#16996)
* [stripe] Attach billing creator user id to Stripe customer

* fix

* fix
2023-03-23 16:48:16 +01:00
Sven Efftinge
03a5fb6ac7 [billing] provide human readable price info 2023-01-23 11:55:30 +01:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Sven Efftinge
a5d67448b2 Revert "[usage] handle reset usage for chargebee" 2022-12-02 11:47:01 -03:00
Sven Efftinge
2eead4a625 [usage] handle reset usage for chargebee
chargebee subscriptions that are cancelled get a dedicatd cost center
2022-11-30 09:08:00 -03:00
Sven Efftinge
e044c1d49f [admin] allow usage adjustments 2022-11-22 06:31:51 -03:00
Alex Tugarev
3de193e3fb [stripe] guard resubscribing with another currency
because it currently not supported.
2022-11-21 06:56:50 -03:00
Sven Efftinge
89d0b7df3f [admin] add admin endpoints for usage 2022-11-18 12:57:47 +02:00
Jan Keromnes
56a4fe2895 [usage] Introduce an explicit CostCenter.BillingCycleStart time 2022-11-11 13:32:41 +02:00
Milan Pavlik
fa8cdc500d [server] Break dependency of content-service on gitpod-protocol, and usage-api on gitpod-protocol 2022-11-09 12:23:38 +01:00
Milan Pavlik
a8638e4a14 [usage] Add UsageService.ResetUsage RPC 2022-10-26 16:17:41 +02:00
Laurie T. Malau
f52f5817a6 [usage] Fix proto for CreateStripeSubscription response message 2022-10-20 12:29:35 +02:00
Laurie T. Malau
e61ab5bf8e [usage] Proto changes Stripe RPC 2022-10-18 16:31:33 +02:00
Milan Pavlik
d7ed1f005c [billing] Define CreateStripeCustomer RPC 2022-10-18 12:14:33 +02:00
Milan Pavlik
922024d202 [usage] Return CostCenter from UsageService.SetCostCenter 2022-10-12 11:28:27 +02:00
Milan Pavlik
ccaff6ff2b [usage] Add GetStripeCustomer to BillingService 2022-10-07 12:35:22 +02:00
Milan Pavlik
8fd1a09354 [usage] Use buf for ts_proto plugin codegen 2022-10-06 14:23:22 +02:00
Milan Pavlik
d908e43e85 [usage] Use buf to codegen Go proto/grpc 2022-10-06 11:16:21 +02:00
Manuel Alejandro de Brito Fontes
d5eb5815b5 Update to 1.19 2022-10-04 15:17:22 +02:00
Manuel Alejandro de Brito Fontes
3f6cbd07f1 Update go dependencies 2022-10-04 15:17:22 +02:00
Christian Weichel
d6023c989a Revert "Switch to Go workspaces"
This reverts commit 6bc34cf17512cb0a10a3a6cce44141b1f06b624e.
2022-09-29 05:28:29 +02:00
Christian Weichel
174a09222f Revert "Run go work sync"
This reverts commit 6b23167e09f74062b31150d4044a8fe7cacbc34b.
2022-09-29 05:28:29 +02:00
Christian Weichel
6b23167e09 Run go work sync 2022-09-28 08:45:28 +02:00
Christian Weichel
6bc34cf175 Switch to Go workspaces 2022-09-28 08:45:28 +02:00
Sven Efftinge
5670a5500e [usage] show sum of usage not balance
fixes #13067
2022-09-23 10:03:24 +02:00
Sven Efftinge
1b995ef47f [usage] introduce getBalance API 2022-09-23 07:34:23 +02:00
Sven Efftinge
4d35f4db8f [usage] remove unused GetUpcomingInvoice 2022-09-19 11:22:20 +02:00
Milan Pavlik
23419beead [usage] Remove BillingService.SetBilledSession proto 2022-09-16 17:20:17 +02:00
Sven Efftinge
9c9369b4e5 [usage-api] add CancelSubscription API
This API is called by Stripe when a customer cancels their subscription
2022-09-16 16:24:17 +02:00
Sven Efftinge
2701ec7bdc [usage] added costcenter nextBillingTime 2022-09-15 19:18:16 +02:00
Milan Pavlik
c3673e3fdc [usage] Rename ReconcileUsageWithLedger to ReconcileUsage 2022-09-13 15:55:14 +02:00
Sven Efftinge
e3ed2c638d [usage-api] Use better typescript generator 2022-09-13 14:34:14 +02:00