CA: Add pod namespace when logging why scaleup wasn't possible
We have many identical statefulsets in different namespaces, as a result, the pod name by itself is close to useless as an identifier. Add the namespace in the log.
This commit is contained in:
parent
d3ec0c4d04
commit
ced2e65acd
|
|
@ -472,7 +472,7 @@ func (o *ScaleUpOrchestrator) SchedulablePods(
|
|||
// Mark pod group as (theoretically) schedulable.
|
||||
eg.Schedulable = true
|
||||
} else {
|
||||
klog.V(2).Infof("Pod %s can't be scheduled on %s, predicate checking error: %v", samplePod.Name, nodeGroup.Id(), err.VerboseMessage())
|
||||
klog.V(2).Infof("Pod %s/%s can't be scheduled on %s, predicate checking error: %v", samplePod.Namespace, samplePod.Name, nodeGroup.Id(), err.VerboseMessage())
|
||||
if podCount := len(eg.Pods); podCount > 1 {
|
||||
klog.V(2).Infof("%d other pods similar to %s can't be scheduled on %s", podCount-1, samplePod.Name, nodeGroup.Id())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue