Skip to content

Commit

Permalink
address commits
Browse files Browse the repository at this point in the history
  • Loading branch information
cofyc committed Sep 5, 2019
1 parent 017bd4e commit 45a0c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/manager/member/orphan_pods_cleaner.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (opc *orphanPodsCleaner) Clean(tc *v1alpha1.TidbCluster) (map[string]string
// if the PVC is not found in apiserver (also informer cache) and the
// phase of the Pod is Pending, delete it and let the stateful
// controller to create the pod and its PVC(s) again
apiPod, err := opc.kubeCli.CoreV1().Pods(pod.Namespace).Get(pod.Name, metav1.GetOptions{})
apiPod, err := opc.kubeCli.CoreV1().Pods(ns).Get(podName, metav1.GetOptions{})
if errors.IsNotFound(err) {
skipReason[podName] = skipReasonOrphanPodsCleanerPodIsNotFound
continue
Expand Down

0 comments on commit 45a0c72

Please sign in to comment.