Skip to content

Commit

Permalink
fix bug (#1032)
Browse files Browse the repository at this point in the history
  • Loading branch information
cofyc authored Oct 23, 2019
1 parent 302f763 commit e528bf4
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 e528bf4

Please sign in to comment.