Skip to content

Commit 998643f

Browse files
Doing it again
Signed-off-by: Vishesh Tanksale <vtanksale@nvidia.com>
1 parent 965d814 commit 998643f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

internal/controller/nimcache_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ func (r *NIMCacheReconciler) reconcileModelManifest(ctx context.Context, nimCach
619619
logger.Info("HERE", "pod", pod.Name)
620620
if existingPod.Status.Phase != corev1.PodRunning {
621621
// requeue request with delay until the pod is ready
622+
logger.Info("HERE", "pod", existingPod.Status)
622623
return true, nil
623624
}
624625
logger.Info("HERE1", "pod", pod.Name)

test/e2e/nim-operator_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,11 @@ var _ = Describe("NIM Operator", func() {
156156
nimCacheObject, _ := cli.AppsV1alpha1().NIMCaches(testNamespace.Name).Get(ctx, nimCache.Name, metav1.GetOptions{})
157157
fmt.Println("NIMCache object conditions:", nimCacheObject.Status.Conditions)
158158
fmt.Println("NIMCache object state:", nimCacheObject.Status.State)
159-
/* pods, err := clientSet.CoreV1().Pods(testNamespace.Name).List(ctx, metav1.ListOptions{})
159+
pod, err := clientSet.CoreV1().Pods(testNamespace.Name).Get(ctx, fmt.Sprintf("%s-pod", nimCache.GetName()), metav1.GetOptions{})
160160
Expect(err).NotTo(HaveOccurred())
161-
for _, pod := range pods.Items {
162-
fmt.Println("Pod name:", pod.Name)
163-
}
164-
fmt.Println("***************") */
161+
fmt.Println("Pod name:", pod.Name)
162+
fmt.Printf("Pod status: %#v\n", pod.Status)
163+
fmt.Println("***************")
165164
return nimCacheObject.Status.State == v1alpha1.NimCacheStatusReady
166165
}, 5*time.Minute, 5*time.Second).Should(BeTrue())
167166

0 commit comments

Comments
 (0)