Commit Graph
9 Commits
Author SHA1 Message Date
Jiahui c236f8cf7a add controllers license to Makefile: make license.controller (#3707) 2023-08-18 11:57:17 +08:00
Jiahui a17d93205c feat: BillingRecordQueryStatus add TotalCount (#3686)
* recordquery return TotalCount

* fix controller ci lint
2023-08-16 11:33:31 +08:00
Jiahui 2bbd1dda76 add ldflags to go build binary (#3679)
* add ldflags to go build binary

* make it easier to understand

* modify to secret.CONTROLLER_BUILD_CRYPTOKEY
2023-08-15 21:30:40 +08:00
Jiahui f0ca871833 fix query length (#3608) 2023-08-01 13:35:21 +08:00
Jiahui 9a013cea25 feat: adapt for gpu cost (#3596)
* add GPU monitoring

* add node role

* add persistentvolumeclaims role

* add payment-secret optional;
fix account Kubefile;
hide monitor useless log

* fix monitoring nil point error

* delete property string to lower
2023-07-31 10:23:53 +08:00
Jiahui 9d234f6430 crypto prices && add default prices (#3575)
default metering all queryProperties;
2023-07-26 11:02:48 +08:00
Jiahui 0fc3f44fbb fix transfer self; (#3493)
add GetBillingCount db Interface
2023-07-12 14:59:16 +08:00
Jiahui 29e86d2971 debt controller implement (#3160)
* monitor skip zero value, delete status field;
implement the dept interface.

monitor skip zero value, delete status field;
implement the dept interface.

* add Notification to debt controller

* validate debt account resourcequota admission;
fix webhook not in self;
2023-06-08 11:27:45 +08:00
Jiahui 5207f95349 feat: resources monitor, metering controller, billing controller, billingrecordquery, pricequery controller (#3008)
* change accountbalance struct
add billing controller;
add new query CRD: billingresordquery and pricequery, and query controller;
modify the storage amount ratio to 1:1000000
optimize mongo query code

* hide the old metering controller

* add query gvk to debt webhook white list;
monitor data table by day, eg: monitor_20230517;
billing collection cancels the timing table and changes it to an index type table;
optimize the billing logic and bill by the hour;
optimize the use of gonanoid to generate 12-digit bill id;
payment crd adds the PaymentMethod field, which is used to identify wechat or other billing methods in the future.

* add resources controller workflow
fix payment controller panic error
add resources controller cluster image workflow
2023-05-25 11:56:47 +08:00