New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/minio cost #4339
Feat/minio cost #4339
Conversation
🤖 Generated by lychee actionSummary
Full action output |
Apply Sweep Rules to your PR?
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4339 +/- ##
=======================================
Coverage 65.45% 65.45%
=======================================
Files 8 8
Lines 660 660
=======================================
Hits 432 432
Misses 180 180
Partials 48 48 ☔ View full report in Codecov by Sentry. |
f342dd9
to
993a9db
Compare
controllers/resources/main.go
Outdated
@@ -19,6 +19,7 @@ package main | |||
import ( | |||
"context" | |||
"flag" | |||
objectstoragev1 "github/labring/sealos/controllers/objectstorage/api/v1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format this.
@@ -93,6 +107,7 @@ func NewMonitorReconciler(mgr ctrl.Manager) (*MonitorReconciler, error) { | |||
stopCh: make(chan struct{}), | |||
periodicReconcile: 1 * time.Minute, | |||
TrafficSvcConn: os.Getenv(TrafficSvcConn), | |||
PromURL: os.Getenv(PrometheusURL), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why add this?
(*resMap)[minioNamed.Name()] = initResources() | ||
} | ||
(*resMap)[minioNamed.Name()][corev1.ResourceStorage].Add(*resource.NewQuantity(size, resource.BinarySI)) | ||
(*resMap)[minioNamed.Name()][resources.ResourceNetwork].Add(*resource.NewQuantity(bytes, resource.BinarySI)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤪
…sage of object storage is not understand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
🤖[deprecated] Generated by Copilot at f342dd9
Summary
🗑️🚀📊
This pull request adds support for minio object storage service and node port service types to the resource controller, and removes the metering feature and its related code and dependencies. It also updates the go.sum file, the controller image tag, and the rbac rules for services and services/status resources.
Walkthrough
go.mod
andgo.sum
files (link, link, link, link, link, link, link, link, link, link)monitor_controller.go
(link, link, link, link, link, link, link)monitor_controller.go
(link)kustomization.yaml
(link)