mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #99633 from CaoDonghui123/kubectllog1
remove duplicate kubectl logs
This commit is contained in:
commit
832ba9cc76
@ -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
Block a user