-
Notifications
You must be signed in to change notification settings - Fork 131
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
Drainer support plugin framework #911
base: plugin
Are you sure you want to change the base?
Conversation
thanks @tsthght |
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.
rest LGTM
drainer/loopbacksync/loopbacksync.go
Outdated
func CreateMarkTable(db *sql.DB, mdbname, mtablename string) error { | ||
// CreateMarkDBDDL is DDL to create the database of mark table. | ||
var err error | ||
var CreateMarkDBDDL = fmt.Sprintf("create database IF NOT EXISTS %s;", mdbname) |
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.
how about use createMarkDBDDL
because it is a variable in function now?
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.
I had fixed it.
LGTM |
@july2993 PTAL |
@tsthght: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What problem does this PR solve?
Drainer support plugin, #886
What is changed and how it works?
Add plugin framework to drainer, user can customize plugins, and use parameter
plugin-name
,plugin-path
andsupport-plugin
to load plugin into drainer.Check List
Tests