Skip to content

Commit 49b4289

Browse files
committed
forgot to hit save
1 parent 853f4f2 commit 49b4289

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func browseCommand(kubeConfigFlags *genericclioptions.ConfigFlags, pvcName strin
143143
}
144144

145145
// Find the created pod.
146-
podList, err := clientset.CoreV1().Pods(*kubeConfigFlags.Namespace).List(context.TODO(), metav1.ListOptions{
146+
podList, err := clientset.CoreV1().Pods(namespace).List(context.TODO(), metav1.ListOptions{
147147
LabelSelector: "job-name=" + pvcbGetJob.Name,
148148
})
149149

@@ -165,7 +165,7 @@ func browseCommand(kubeConfigFlags *genericclioptions.ConfigFlags, pvcName strin
165165

166166
for pod.Status.Phase != corev1.PodRunning && timeout > 0 {
167167

168-
pod, err = clientset.CoreV1().Pods(*kubeConfigFlags.Namespace).Get(context.TODO(), pod.Name, metav1.GetOptions{})
168+
pod, err = clientset.CoreV1().Pods(namespace).Get(context.TODO(), pod.Name, metav1.GetOptions{})
169169
if err != nil {
170170
log.Fatalf("Failed to get pod: %v", err)
171171
}

0 commit comments

Comments
 (0)