Skip to content

Commit 7651c27

Browse files
committed
PANDARIA: Add log putput for StatusPods
1 parent 288346c commit 7651c27

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extensions/workloads/pods/pod_status.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/rancher/shepherd/clients/rancher"
99
v1 "github.com/rancher/shepherd/clients/rancher/v1"
1010
"github.com/rancher/shepherd/extensions/defaults"
11+
"github.com/sirupsen/logrus"
1112
corev1 "k8s.io/api/core/v1"
1213
kwait "k8s.io/apimachinery/pkg/util/wait"
1314
)
@@ -31,6 +32,7 @@ func StatusPods(client *rancher.Client, clusterID string) []error {
3132
// emptying pod errors every time we poll so that we don't return stale errors
3233
podErrors = []error{}
3334

35+
logrus.Infof("listing pod...") // PANDARIA:
3436
pods, err := steveClient.List(nil)
3537
if err != nil {
3638
// not returning the error in this case, as it could cause a false positive if we start polling too early.
@@ -41,6 +43,7 @@ func StatusPods(client *rancher.Client, clusterID string) []error {
4143
isReady, err := IsPodReady(&pod)
4244
if !isReady {
4345
// not returning the error in this case, as it could cause a false positive if we start polling too early.
46+
logrus.Infof("pod [%v/%v] not ready", pod.Namespace, pod.Name) // PANDARIA:
4447
return false, nil
4548
}
4649

0 commit comments

Comments
 (0)