remove duplicate logs
Kubernetes-commit: 60991daf1ca6ccd24ae14e6643b8374d55bc75bb
This commit is contained in:
parent
d12347c88d
commit
a93288022b
|
@ -258,7 +258,6 @@ func checkPodAge(pod *v1.Pod) error {
|
|||
age := time.Since(pod.CreationTimestamp.Time)
|
||||
if age > metricsCreationDelay {
|
||||
message := fmt.Sprintf("Metrics not available for pod %s/%s, age: %s", pod.Namespace, pod.Name, age.String())
|
||||
klog.Warningf(message)
|
||||
return errors.New(message)
|
||||
} else {
|
||||
klog.V(2).Infof("Metrics not yet available for pod %s/%s, age: %s", pod.Namespace, pod.Name, age.String())
|
||||
|
|
Loading…
Reference in New Issue