Skip to content
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

Merged
merged 11 commits into from Nov 27, 2023
Merged

Feat/minio cost #4339

merged 11 commits into from Nov 27, 2023

Conversation

bxy4543
Copy link
Member

@bxy4543 bxy4543 commented Nov 23, 2023

🤖[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.

Sing, O Muse, of the mighty pull request, the work of many hands
That changed the code of the controller, the watcher of the lands
Where pods and services dwell, and minio stores the treasures
Of the users and their namespaces, the sources of their pleasures

Walkthrough

@sealos-ci-robot
Copy link
Member

sealos-ci-robot commented Nov 23, 2023

🤖 Generated by lychee action

Summary

Status Count
🔍 Total 1036
✅ Successful 367
⏳ Timeouts 0
🔀 Redirected 0
👻 Excluded 668
❓ Unknown 0
🚫 Errors 0

Full action output

Full Github Actions output

Copy link

sweep-ai bot commented Nov 23, 2023

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.
  • Apply: Add docstrings to all functions and file headers.

Copy link

codecov bot commented Nov 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4efa9d8) 65.45% compared to head (ba5cf96) 65.45%.
Report is 2 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@@ -19,6 +19,7 @@ package main
import (
"context"
"flag"
objectstoragev1 "github/labring/sealos/controllers/objectstorage/api/v1"
Copy link
Collaborator

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),
Copy link
Collaborator

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))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤪

Copy link
Collaborator

@lingdie lingdie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bxy4543 bxy4543 merged commit 05e8baf into labring:main Nov 27, 2023
35 checks passed
@bxy4543 bxy4543 deleted the feat/minio-cost branch November 27, 2023 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants