-
Notifications
You must be signed in to change notification settings - Fork 520
fix(pd): fix the pd name of tc with across k8s opt (#4721) #4728
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
fix(pd): fix the pd name of tc with across k8s opt (#4721) #4728
Conversation
Signed-off-by: ti-srebot <[email protected]>
[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 submitting an approval review. |
@liubog2008 you're already a collaborator in bot's repo. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: ec96593
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## release-1.3 #4728 +/- ##
===============================================
+ Coverage 62.36% 72.36% +9.99%
===============================================
Files 186 190 +4
Lines 20867 23340 +2473
===============================================
+ Hits 13014 16890 +3876
+ Misses 6638 5246 -1392
+ Partials 1215 1204 -11
|
/test pull-e2e-kind |
/test pull-e2e-kind-across-kubernetes |
@ti-srebot: Your PR was out of date, 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. |
/test pull-e2e-kind-across-kubernetes pull-e2e-kind |
cherry-pick #4721 to release-1.3
You can switch your code base to this Pull Request by using git-extras:
# In tidb-operator repo: git pr https://github.com/pingcap/tidb-operator/pull/4728
After apply modifications, you can push your change to this PR via:
What problem does this PR solve?
Now if
spec.acrossK8s
is set butspec.clusterDomain
is empty in TC, the upgrading process of PD will be blocked because the name of pd in status is mismatched with the return result of functionPdName
.For now, if
spec.clusterDomain
is empty, thePdName
will return pod name whetherspec.acrossK8s
is true or false. However, ifspec.acrossK8s
is true, the real pd name generated by start-script is the full domain name.After this PR merged,
PdName
will also return full domain name whenspec.acrossK8s
is trueWhat is changed and how does it work?
Code changes
Tests
Side effects
Related changes
Release Notes
Please refer to Release Notes Language Style Guide before writing the release note.