-
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
Skip the TLS of the PD dashboard when the TiDB version < v4.0.0 #2389
Conversation
func (tc *TidbCluster) PDVersion() string { | ||
version := tc.Spec.PD.Version | ||
if version == nil { | ||
version = &tc.Spec.Version | ||
} | ||
|
||
return *version | ||
} |
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.
I suggest letting pd tell operator the PDVersion (Don't know how or whether it exists) instead of judging it from spec.pd.version
as we can't solve the case like version: nightly.
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.
I don't known how to let pd tell its version before starting it.
/run-e2e-tests |
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
/merge |
/run-all-tests |
cherry pick to release-1.1 in PR #2401 |
What problem does this PR solve?
fixes: #2385
What is changed and how does it work?
Check List
Tests
Unit test
Code changes
Has Go code change
Side effects
Related changes
Does this PR introduce a user-facing change?: