backup: use secure client when talking to tls cluster
@@ -256,6 +256,7 @@ func getMemberWithMaxRev(pods []*v1.Pod, tc *tls.Config) (*etcdutil.Member, int6
m := &etcdutil.Member{
Name: pod.Name,
Namespace: pod.Namespace,
+ SecureClient: tc != nil,
}
cfg := clientv3.Config{
Endpoints: []string{m.ClientAddr()},
