-
Notifications
You must be signed in to change notification settings - Fork 312
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 custom field in global options #1098
Conversation
@@ -68,6 +68,7 @@ type ( | |||
ResourceControl meta.ResourceControl `yaml:"resource_control,omitempty" validate:"resource_control:editable"` | |||
OS string `yaml:"os,omitempty" default:"linux"` | |||
Arch string `yaml:"arch,omitempty" default:"amd64"` | |||
Custom interface{} `yaml:"custom,omitempty" validate:"custom:ignore"` |
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.
It's not an elegant way.
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.
So do you have a better idea? We must define an extra field because we use yaml.UnmarshalStrict, which will report error when user define custom field outside the Custom
Codecov Report
@@ Coverage Diff @@
## master #1098 +/- ##
===========================================
- Coverage 56.65% 44.77% -11.88%
===========================================
Files 285 251 -34
Lines 20202 17345 -2857
===========================================
- Hits 11445 7767 -3678
- Misses 6996 8302 +1306
+ Partials 1761 1276 -485
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by writing |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 8784485
|
@lucklove: Your PR has out-of-dated, I have automatically updated it for you. 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 ti-community-infra/tichi repository. |
What problem does this PR solve?
Fix #571
What is changed and how it works?
This PR introduce a
custom
field inglobal
of topology. By this way, the user can define his server specs in global level:The tidb_server of host
172.16.5.138
will be expanded asCheck List
Tests
Code changes
Side effects
Related changes
Release notes: