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

binglog: fix tls error when create pump with TLS when use CRD #1799

Merged
merged 10 commits into from
Feb 27, 2020
6 changes: 3 additions & 3 deletions pkg/manager/member/pump_member_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ func getNewPumpConfigMap(tc *v1alpha1.TidbCluster) (*corev1.ConfigMap, error) {
confTextStr = strings.Join([]string{
confTextStr,
"[security]",
serviceAccountCAPath,
path.Join(pumpCertPath, "cert"),
path.Join(pumpCertPath, "key")}, "\n")
fmt.Sprintf("ssl-ca = \"%s\"", serviceAccountCAPath),
fmt.Sprintf("ssl-cert = \"%s\"", path.Join(pumpCertPath, "cert")),
fmt.Sprintf("ssl-key = \"%s\"", path.Join(pumpCertPath, "key"))}, "\n")
}
data := map[string]string{
"pump-config": confTextStr,
Expand Down