Skip to content

Commit

Permalink
fix pd-client tls bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Song Gao committed Feb 14, 2020
1 parent 87f2acf commit 336bef9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["events"]
verbs: ["create","patch","update"]
Expand Down
3 changes: 2 additions & 1 deletion pkg/manager/member/pd_member_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,11 @@ func (pmm *pdMemberManager) syncPDStatefulSetForTidbCluster(tc *v1alpha1.TidbClu
func (pmm *pdMemberManager) syncPDClientCerts(tc *v1alpha1.TidbCluster) error {
ns := tc.GetNamespace()
tcName := tc.GetName()
commonName := fmt.Sprintf("%s-pd-client", tcName)
commonName := fmt.Sprintf("%s-pd", tcName)

hostList := []string{
commonName,
fmt.Sprintf("%s.%s", commonName, tc.Namespace),
}

certOpts := &controller.TiDBClusterCertOptions{
Expand Down

0 comments on commit 336bef9

Please sign in to comment.