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

config: validate dashboard-address #2517

Merged
merged 4 commits into from
Jun 8, 2020
Merged

config: validate dashboard-address #2517

merged 4 commits into from
Jun 8, 2020

Conversation

HunDunDM
Copy link
Member

@HunDunDM HunDunDM commented Jun 8, 2020

Signed-off-by: Zheng Xiangsheng hundundm@gmail.com

What problem does this PR solve?

What is changed and how it works?

  • When setting the pd-server config, validate the dashboard-address and reject the incorrect setting.

Check List

Tests

  • Unit test

Release note

Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
@HunDunDM HunDunDM marked this pull request as ready for review June 8, 2020 07:51
@HunDunDM
Copy link
Member Author

HunDunDM commented Jun 8, 2020

/run-all-tests

@HunDunDM HunDunDM requested review from rleungx and lhy1024 June 8, 2020 07:51
@HunDunDM HunDunDM self-assigned this Jun 8, 2020
@HunDunDM HunDunDM added component/config Configuration logic. needs-cherry-pick-release-4.0 The PR needs to cherry pick to release-4.0 branch. labels Jun 8, 2020
@HunDunDM HunDunDM added this to the v4.0.2 milestone Jun 8, 2020
Copy link
Contributor

@lhy1024 lhy1024 left a comment

Choose a reason for hiding this comment

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

the rest LGTM

server/config/config.go Show resolved Hide resolved
server/config/config_test.go Show resolved Hide resolved
@lhy1024
Copy link
Contributor

lhy1024 commented Jun 8, 2020

/merge

@sre-bot sre-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jun 8, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Jun 8, 2020

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Jun 8, 2020

@HunDunDM merge failed.

@HunDunDM
Copy link
Member Author

HunDunDM commented Jun 8, 2020

/run-all-tests

@lhy1024
Copy link
Contributor

lhy1024 commented Jun 8, 2020

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Jun 8, 2020

/run-all-tests

@sre-bot sre-bot merged commit da694b4 into master Jun 8, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Jun 8, 2020

cherry pick to release-4.0 in PR #2522

@HunDunDM HunDunDM deleted the fix-addr branch June 9, 2020 01:22
sre-bot added a commit that referenced this pull request Jun 15, 2020
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/config Configuration logic. needs-cherry-pick-release-4.0 The PR needs to cherry pick to release-4.0 branch. status/can-merge Indicates a PR has been approved by a committer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting dashboard-address in the wrong format can cause unexpected behavior
4 participants