Commit e929977f authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #15541 from wojtek-t/extend_logging_for_scalability

Auto commit by PR queue bot
parents 4008c653 f837b616
......@@ -1400,9 +1400,11 @@ func RunRC(config RCConfig) error {
}
if oldRunning != config.Replicas {
if pods, err := config.Client.Pods(api.NamespaceAll).List(labels.Everything(), fields.Everything()); err == nil {
// List only pods from a given replication controller.
if pods, err := config.Client.Pods(api.NamespaceAll).List(label, fields.Everything()); err == nil {
for _, pod := range pods.Items {
Logf("Pod %s\t%s\t%s\t%s", pod.Namespace, pod.Name, pod.Spec.NodeName, pod.DeletionTimestamp)
Logf("Pod %s\t%s\t%s\t%s", pod.Name, pod.Spec.NodeName, pod.Status.Phase, pod.DeletionTimestamp)
}
} else {
Logf("Can't list pod debug info: %v", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment