-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add mysql to mapper-framework for enhancing pushmethod db. #5376
Conversation
a89606e
to
1847270
Compare
e80e0d7
to
d2dbd92
Compare
cc @cl2017 |
Add it to version v1.17.0. @Shelley-BaoYue |
@@ -0,0 +1,93 @@ | |||
package mysql |
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.
Add KubeEdge License header for all new files.
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.
Ihave added it.
github.com/kubeedge/kubeedge => ../../../../../../../../kubeedge | ||
github.com/kubeedge/mapper-framework => ../../../mapper-framework |
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.
github.com/kubeedge/kubeedge => ../../../../../../../../kubeedge | |
github.com/kubeedge/mapper-framework => ../../../mapper-framework | |
github.com/kubeedge/kubeedge => ../../../../../../kubeedge | |
github.com/kubeedge/mapper-framework => ../mapper-framework |
Considering the e2e test of mapper-framework, the directory where the generated mapper project is located should be used as the standard for dependent applications. Otherwise, the directory actually referenced by the generated mapper project is incorrect.
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.
Considering the e2e test of mapper-framework, the directory where the generated mapper project is located should be used as the standard for dependent applications. Otherwise, the directory actually referenced by the generated mapper project is incorrect.
ok
Verify vendor CI need to be fixed :) @luomengY |
c251421
to
91de952
Compare
ok |
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
@@ -0,0 +1,106 @@ | |||
/* | |||
Copyright 2024 The Kubernetes Authors. |
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.
Copyright 2024 The Kubernetes Authors. | |
Copyright 2024 The KubeEdge Authors. |
KubeEdge, thanks :)
pkg/apis/dmi/v1beta1/api.proto
Outdated
@@ -251,6 +251,7 @@ message DBMethod{ | |||
DBMethodInfluxdb2 influxdb2 = 1; | |||
DBMethodRedis redis = 2; | |||
DBMethodTDEngine tdengine = 3; | |||
DBMethodMySQL mysql=4; |
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.
Add a space to keep the format consistent.
DBMethodMySQL mysql=4; | |
DBMethodMySQL mysql = 4; |
pkg/apis/dmi/v1beta1/api.proto
Outdated
@@ -303,6 +304,20 @@ message TDEngineClientConfig{ | |||
string dbname = 2; | |||
} | |||
|
|||
|
|||
message DBMethodMySQL{ | |||
MySQLClientConfig mysqlClientConfig=1; |
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.
ditto
if err != nil { | ||
klog.Errorf("close mysql failed with err:%v", err) | ||
} | ||
|
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.
remove redundant blank lines.
@@ -0,0 +1,70 @@ | |||
/* |
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.
There need be a blank line between paragraphs in copyrights. You can refer to other files.
github.com/golang/protobuf v1.5.3 // indirect | ||
github.com/gorilla/mux v1.8.0 // indirect | ||
github.com/influxdata/influxdb-client-go/v2 v2.13.0 | ||
github.com/kubeedge/kubeedge v1.16.0-beta.0 | ||
github.com/kubeedge/mapper-framework v0.0.0-20240119021034-e7755b2f421c | ||
github.com/kubeedge/kubeedge v0.0.0 |
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.
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.
This part of the change is not caused by the addition of a new database, but the content of the mapper upgrade framework. Since part of the mapper code now needs to reference the content in the kubeedge/mapper-framework repo, when we modify the mapper code, the e2e test still uses the content in the old version of the kubeedge/mapper-framework repo, which will cause conflicts. So we change this part to a local reference @Shelley-BaoYue
Signed-off-by: luomengY <2938893385@qq.com>
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
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fisherxu, wbc6080 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Add mysql to mapper-framework for enhancing pushmethod db.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: