Merge pull request #99633 from CaoDonghui123/kubectllog1

remove duplicate kubectl logs
This commit is contained in:
Kubernetes Prow Robot 2021-03-04 07:44:41 -08:00 committed by GitHub
commit 832ba9cc76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -258,7 +258,6 @@ func checkPodAge(pod *v1.Pod) error {
age := time.Since(pod.CreationTimestamp.Time) age := time.Since(pod.CreationTimestamp.Time)
if age > metricsCreationDelay { if age > metricsCreationDelay {
message := fmt.Sprintf("Metrics not available for pod %s/%s, age: %s", pod.Namespace, pod.Name, age.String()) 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) return errors.New(message)
} else { } else {
klog.V(2).Infof("Metrics not yet available for pod %s/%s, age: %s", pod.Namespace, pod.Name, age.String()) klog.V(2).Infof("Metrics not yet available for pod %s/%s, age: %s", pod.Namespace, pod.Name, age.String())