-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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/traffic proto #4095
Merged
Merged
Feat/traffic proto #4095
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🤖 Generated by lychee actionSummary
Full action output |
Apply Sweep Rules to your PR?
|
Codecov ReportAll modified lines are covered by tests ✅ 📢 Thoughts on this report? Let us know!. |
bxy4543
force-pushed
the
feat/traffic_proto
branch
from
October 16, 2023 06:33
f3bcc65
to
586d999
Compare
add kb backup pvc monitoring name; optimize traffic monitor;
bxy4543
force-pushed
the
feat/traffic_proto
branch
from
October 16, 2023 06:44
586d999
to
66eaac4
Compare
lingdie
approved these changes
Oct 16, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🤖 Generated by Copilot at 088b70c
Summary
🚀🌐🧹
This pull request improves the
controllers
package by adding support for kubeblocks backup jobs and network traffic queries, using gRPC to communicate with the sealos network manager service, and updating the comments, dependencies, and environment variables. It also cleans up some unused and outdated code and comments in thedatabase
andresources
packages.Walkthrough
podResourceUsage
to separate the logic of getting the resource usage data from the logic of inserting them into the database, and rename it togetResourceUsage
(link,link,link,link,link)podResourceUsage
topodResourceUsageInsert
to reflect its purpose of inserting the pod resource usage data into the database (link,link)AVG
toDIF
, which represents the difference between the maximum and minimum values of the resource usage metric (link,link,link)labels
to the typeResourceNamed
to store the labels of the resource object, and use it for querying the network traffic data from the sealos network manager service (link,link)KubeBlocksBackUpName
to represent the name of the backup job for kubeblocks data, and handle it in theNewResourceNamed
function (link,link)TODO
tags to indicate that the logging statements below should be deleted later (link,link)github.com/dinoallo/sealos-networkmanager-protoapi
in thego.mod
file of the packagecontrollers/pkg
, which provides the protobuf definitions and generated code for the sealos network manager service (link,link)go.work.sum
file, based on the changes in the dependencies (link,link,link,link,link,link,link,link,link,link,link,link,link,link,link,link,link,link)resources
that are related to the database and collection names, as they are moved to the packagedatabase
(link)resources
that is related to the infra resource usage, as it is not used in the current logic (link,link,link,link)ctx
from the functiongetGPUResourceUsage
(link)initResources
to initialize theresources.ResourceNetwork
key in the resource usage map with a zero quantity (link)