File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
extensions/workloads/pods Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments