Commit Graph
606 Commits
Author SHA1 Message Date
Bearix 056bcaf6bc feat(service): add Hubble service to enhance observability (#5729)
feat(service): add Hubble service to enhance observability.
2025-09-15 10:28:27 +08:00
f8d95055f1 Corporate (#5783)
* corporate

---------

Co-authored-by: wj <3638877@qq.com>
Co-authored-by: WJfmvp <119284581+WJfmvp@users.noreply.github.com>
2025-08-05 11:17:35 +08:00
Jiahuiandwj d5cfcd2c19 Corporate (#5726)
* support_pay_refund

* corporate

---------

Co-authored-by: wj <3638877@qq.com>
2025-07-31 17:17:44 +08:00
Jiahui dfd5960eb8 add pods limit, default: 20 (#5724) 2025-07-24 16:29:18 +08:00
Jiahui 8e3d1d1b2e update activity rules (#5708)
* pay active

* frontend

* add time filtering active users
2025-07-18 17:58:11 +08:00
WJfmvp a8bf9bdca8 Feat: support pay refund (#5705)
* support_pay_refund
2025-07-17 15:43:19 +08:00
Jiahui 403756727a support alipay (#5679)
* init

* frontend support alipay

* fix quota skip debt event

* optimize pay anno
2025-07-15 10:27:49 +08:00
Jiahui 19e63bd413 Fix/skip terminal ns (#5675)
* fix skip namespace terminating status

* processUsersInParallel semaphore to 1000
2025-07-03 11:42:14 +08:00
Bearix c0fa294f8f feat:change devbox pod delete logic (#5666) 2025-06-27 18:09:57 +08:00
Jiahui 830140291d fix quota controller predicate select event devbox reason. (#5659) 2025-06-19 16:40:17 +08:00
xzy bf1eb39829 Fix the incorrect deductions caused by incomplete objectstorage-traffic data (#5647) 2025-06-11 17:19:27 +08:00
Jiahui c4ecb012fb filter normal namespaces for the metering controller and reduce invalid data (#5645) 2025-06-11 15:56:22 +08:00
Jiahui 6eb28db0ee support the suspension and resumption of export network services (#5629)
* support the suspension and resumption of export network services

* support recording user traffic to the database: `UserTimeRangeTraffic` Table.

* network suspend/resume annotation value to upper

* add suspend/resume user traffic api

* optimize monitor user traffic process

* realize the automatic refresh of traffic usage

* add test
2025-06-06 11:07:03 +08:00
Jiahui 5daf9e56e9 support pods/service limit (#5624) 2025-06-06 11:04:10 +08:00
Jiahui 72f03970a4 fix get user id without cache (#5635) 2025-06-04 17:34:24 +08:00
Jiahui 68a2a9fae9 fix skip abnormal user subscriptions (#5623) 2025-05-30 11:23:57 +08:00
Jiahui 4e70494a70 optimize sendFlushQuotaRequest log & fix create or update quota (#5609)
* optimize sendFlushQuotaRequest log & fix create or update quota

* optimize: user remove the watching AnnotationChangedPredicate

* optimize initialize the account data
2025-05-27 17:04:30 +08:00
Jiahui 563ce808ad fix assignment user uid to UserQueryOpts (#5606) 2025-05-26 18:26:40 +08:00
Jiahui cb45b20a1c Fix/debt process time range (#5602)
* fix debt time range process: if error occurs, the start time of the next execution is the start time of the last one

* optimize

* suspend create transaction

* add github detection initialization account

* fix ci
2025-05-16 16:07:26 +08:00
Jiahui 4b16df4121 Optimize/namespace controller (#5599)
* fix namespace controller stop kb cluster

* optimize namespace controller:
concurrent deletion of resources

* optimize namespace controller: UsePriorityQueue
2025-05-15 11:41:35 +08:00
Jiahui eb732eed73 fix debt send msg (#5598) 2025-05-14 14:55:59 +08:00
Jiahui b32f7a6845 debt webhook cache user account info (#5593)
* use Generic type

* fix ci
2025-05-14 14:49:48 +08:00
yyandjiahui 4cc740443a upgrade: controller runtime version (#5597)
* upgrade: controller runtime version

* Upgrade k8s.io/client-go version v0.28.3 => v0.32.1; Upgrade golang version v1.22 => 1.24 to be compatible with client-go v0.32.1

* fix ci

* fix ci

* skip md5 semgrep check

---------

Co-authored-by: jiahui <bxy4543@gmail.com>
2025-05-14 14:48:42 +08:00
Jiahui 30ec4f9b17 Compatible with pgsql syntax: current_timestamp() => current_timestamp (#5586)
* delete repeated update time

* add namespace reconcile status & add final delete job & app resource

* remove the useless lock & optimize GetCreditsInfo api speed

* add KYC process enabled env
2025-05-13 16:20:45 +08:00
Jiahui 9c2b5e6847 Feat/auto update quota (#5538)
* add resource quota auto adapt

* add nodeport

* add default limit expansion cycle
2025-05-07 10:48:06 +08:00
Jiahui 8c2db08fd4 Support subscriptions, atom payments, credits, and optimize debt systems (#5545)
* add credits

* create table

* change name & add table name

* optimize interface

* print result err log

* fix

* add credits for debt

* creditsTransaction add region

* refactor debt status:
Normal\LowBalance\CriticalBalance\Debt\DebtDeletion\Final Period.

* refactor debt status:
Normal\LowBalance\CriticalBalance\Debt\DebtDeletion\Final Period.

* add retry transaction

* optimize determine status

* support card pay & subscription plan & operator service

* add pay notify & redirect url

* fix

* optimize

* add error test log

* fix req time

* fix

* fix

* add subscription payment api

* only processes the `CAPTURE_RESULT` notify type

* fix

* fix

* fixed notify structure parsing

* fix

* fix

* init a Free initial subscription plan √/ Initialize credits Create √

* init resourcequota wiht subscription

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix card type

* fix

* Subscribe controller: real-time monitoring subscriptionTransaction processing created/upgrade/downgrade

* fix

* fix

* fix

* determine current debt status with subscription

* optimize pay api resp

* process subscription auto renewal

* optimize log

* fix

* fix

* add GetAppResourceCosts api

* fix

* add GetLastSubscriptionTransaction api

* add GetSubscriptionUpgradeAmount api

* add /subscription/flush-quota api

* fix

* add remote flush subscription quota

* go mod tidy

* fix

* add retry flush subscription quota

* add custom debt status send email body

* fix

* fix

* fix

* fix

* fix

* add free process subscription

* fix

* add default pay expire time

* optimize

* support kyc & optimize

* optimiz

* add descributed lock with gorm db

* optimize debt reconcile

* optimize send email

* optimize split sms vms code map; handler failure reflush debt status.

* optimize

* add email username

* optimize

* skip zero user

* optimize flush svc

* add convert test func

* fix

* optimize log

* use the k8s client with cache

* fix golang ci lint
2025-05-06 16:56:25 +08:00
Jiahui c672e3750c optimize recharge discount step (#5552) 2025-04-23 10:52:48 +08:00
yy e381a9597f fix: devbox pod create logic should not retry on conflict, just return. (#5543) 2025-04-17 18:01:23 +08:00
yy cc8774a484 update: devbox deploy.yaml.tmpl to build latest cluster image (#5544) 2025-04-17 17:57:26 +08:00
yy e33104d21b fix: devbox release target image tag (#5527) 2025-04-15 17:57:35 +08:00
yy 3cd9604d84 fix: devbox release target image tag (#5525) 2025-04-09 11:39:27 +08:00
Bearix 57fb06142a feat: devbox cold shutdown. (#5492)
* feat: cold shutdown.

* feat: cold shutdown.

* fix bug.

* change logic: using state.

* change if to switch.

* change if to switch.

* change if to switch.

* add change phase logic.
2025-04-09 11:38:21 +08:00
xzy b83dca6b03 fix: update objectstorage cloud image and fix workflow error (#5497)
* update controller version

* add sh

* mv sh

* add sh

* mv docker sh

* update controller cloud image version

* update controller deploy.yaml

* 1

* 2

* change https to http

* 1

* test

* fix

* rm

* 1

* 1

* 1

* 1

* add sh to scripts directory

* fix ci 1

* fix ci 2
2025-03-21 20:13:54 +08:00
ShortCipher5 0aabb5ff04 feat: Allow coupons on Stripe checkout (#5459)
* chore: Allow coupons on Stripe checkout

* chore: Fix lint

* Fix with gofmt
2025-03-13 10:19:18 +08:00
yy ac6458c681 fix: devbox controller with event filter. (#5460) 2025-03-12 17:07:22 +08:00
yy ef83190c42 fix: user controller with event filter. (#5433)
* fix: user controller with event filter.

* feat: add a flag to control restart predicat time.

* fix: user controller with event filter.

* fix: user controller with event filter.
2025-03-12 16:25:02 +08:00
Jiahui f162e6c6ad fix repetitive execution (#5437) 2025-03-04 10:35:33 +08:00
yy 1ae85d8e2d feat: make admin user id fixed (#5424) 2025-02-27 17:19:57 +08:00
limbo bf52ed5616 chore(account-service): Add aiproxy backend real name lookup interface (#5394)
* chore(add amdin real name info query)

* chore
2025-02-21 16:14:41 +08:00
xzy 019a0e1926 fix deploy.yaml (#5383) 2025-02-19 17:06:24 +08:00
yy 8b81bb67d0 fix: devbox release tag use last predicated success commit. (#5379) 2025-02-18 11:54:31 +08:00
Jiahui 6a332d3702 fix skip llm token (#5369) 2025-02-12 14:16:49 +08:00
yy 3be90e5328 feat: devbox controller concurrent and config qps flag. (#5365)
* feat: add flag to set config qps and burst.

* feat: support concurrent devbox controller.
2025-02-11 15:25:50 +08:00
Jiahui 5cfeb599ca Optimize billing efficiency (#5362)
* billing reconciler changed from controller trigger to scheduled task execution.

* with manager runner

* with manager runner

* change cmv billing with manager runner

* optimize log

* fix reconcile

* add billing with wait group goroutine

* add logger

* get the user cr using the cacheless client

* optimize

* Removes mongo Aggregate processing data that is too slow and uses in-memory batch user metering data.

* fix

* remove the owner that does not need to be updated

* optimize log && fix the genGroupKey GenerateBillingDataFromRecords rules

* make format
2025-02-10 16:33:16 +08:00
limbo 232bc84584 chore(account-service): add enterprise real name info inquiry (#5363) 2025-02-10 16:31:59 +08:00
Jiahui 53daadf9a6 Optimize/debt suspend cronjob (#5256)
* add suspend cronjob

* add cronjob to account controller manager cluster role
2025-02-07 14:18:47 +08:00
yy 365aededad feat: support node selector and runtime class name for devbox. support custom resource name. (#5330) 2025-01-07 17:57:03 +08:00
yy df6eef64c2 step2: change pod create logic from devbox config, delete runtime and runtimeclass crd. (#5328) 2025-01-07 15:41:30 +08:00
yy b46d3763cd step1: copy runtime config to devbox crd, add runtime id. (#5326) 2025-01-07 15:24:22 +08:00
Jiahui 3ba1b7b68f support custom describe (#5318) 2024-12-31 14:24:51 +08:00