Skip to content

Commit

Permalink
Merge branch 'master' into lb
Browse files Browse the repository at this point in the history
  • Loading branch information
aylei authored Oct 23, 2019
2 parents 93b3cb6 + e528bf4 commit 699bcbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/manager/member/tidb_member_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ func (tmm *tidbMemberManager) getNewTiDBSetForTidbCluster(tc *v1alpha1.TidbClust
})

dnsPolicy := corev1.DNSClusterFirst // same as k8s defaults
if tc.Spec.PD.HostNetwork {
if tc.Spec.TiDB.HostNetwork {
dnsPolicy = corev1.DNSClusterFirstWithHostNet
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/manager/member/tikv_member_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ func (tkmm *tikvMemberManager) getNewSetForTidbCluster(tc *v1alpha1.TidbCluster)
}

dnsPolicy := corev1.DNSClusterFirst // same as k8s defaults
if tc.Spec.PD.HostNetwork {
if tc.Spec.TiKV.HostNetwork {
dnsPolicy = corev1.DNSClusterFirstWithHostNet
}

Expand Down

0 comments on commit 699bcbb

Please sign in to comment.