-
Notifications
You must be signed in to change notification settings - Fork 500
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
sync pd and tikv configmap in controller #1330
Conversation
/run-e2e-test |
Signed-off-by: Aylei <rayingecho@gmail.com>
/run-e2e-test |
@@ -250,7 +246,7 @@ type PDScheduleConfig struct { | |||
// MaxStoreDownTime is the max duration after which | |||
// a store will be considered to be down if it hasn't reported heartbeats. | |||
// +optional | |||
MaxStoreDownTime Duration `toml:"max-store-down-time,omitempty" json:"max-store-down-time,omitempty"` | |||
MaxStoreDownTime string `toml:"max-store-down-time,omitempty" json:"max-store-down-time,omitempty"` |
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.
BurntSushi/toml
do not respect MarshalText
, use string
instead
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.
BurntSushi/toml
seems not maintained anymore...
we can use https://github.com/pelletier/go-toml
and implement toml.MarshalTOML()
(like MarshalJSON())
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.
Yes, that's exactly what I've thought.
Actually I've tried go-toml
( and naoina/toml
), it turns out that go-toml
does not support interface{}
(necessary for schemaless configuration, e.g. Pump). Also, PD and TiDB uses BurntSushi/toml
so there is little verifying work, seems like that BurntSushi/toml
is not an ideal but the only choice
/run-e2e-test |
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
Signed-off-by: Aylei rayingecho@gmail.com
What problem does this PR solve?
close #1263
close #1264
Check List
Tests
Code changes
Does this PR introduce a user-facing change?: