Skip to content
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 default behavior in config field description #1411

Merged
merged 6 commits into from
Dec 27, 2019
Merged

Conversation

aylei
Copy link
Contributor

@aylei aylei commented Dec 25, 2019

Signed-off-by: Aylei rayingecho@gmail.com

What problem does this PR solve?

close #986

What is changed and how does it work?

  1. some configuration fields that are not expected to modified by user are removed
  2. add default behavior of fields
  3. mark the some PD configurations as immutable, because they can only be modified via pd-ctl after cluster creation, modify through the CR is supposed to cause an ValidateUpdate error in the later validation logic

Note that we don't use // +kubebuilder:default=xxx comment tag to set defaults of the configuration because the TiKV/PD/TiDB server will automatically perform the behavior when the fields are omitted and we want to keep the spec of TidbCluster simple.

Check List

Tests

  • Unit test
  • E2E test

Does this PR introduce a user-facing change?:

Refine the configuration schema of PD/TiKV/TiDB.

@shuijing198799 @sdojjy @tennix @Yisaer @LinuxGit PTAL

Signed-off-by: Aylei <rayingecho@gmail.com>
@aylei
Copy link
Contributor Author

aylei commented Dec 25, 2019

/run-all-test

Copy link
Contributor

@LinuxGit LinuxGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@shuijing198799 shuijing198799 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aylei
Copy link
Contributor Author

aylei commented Dec 27, 2019

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Dec 27, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Dec 27, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Dec 27, 2019

@aylei merge failed.

@aylei
Copy link
Contributor Author

aylei commented Dec 27, 2019

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Dec 27, 2019

/run-all-tests

@sre-bot sre-bot merged commit db9e0b8 into pingcap:master Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TidbCluster: configuration management
4 participants