mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Adjust the acceptable value of UsageNanoCores
Signed-off-by: Harshal Patil <harpatil@redhat.com>
This commit is contained in:
parent
1a66eb7b8a
commit
bff8109eb7
@ -23,7 +23,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"k8s.io/api/core/v1"
|
||||
v1 "k8s.io/api/core/v1"
|
||||
"k8s.io/apimachinery/pkg/api/resource"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
kubeletstatsv1alpha1 "k8s.io/kubelet/pkg/apis/stats/v1alpha1"
|
||||
@ -89,8 +89,12 @@ var _ = framework.KubeDescribe("Summary API [NodeConformance]", func() {
|
||||
"Name": gstruct.Ignore(),
|
||||
"StartTime": recent(maxStartAge),
|
||||
"CPU": ptrMatchAllFields(gstruct.Fields{
|
||||
"Time": recent(maxStatsAge),
|
||||
"UsageNanoCores": bounded(10000, 2e9),
|
||||
"Time": recent(maxStatsAge),
|
||||
// CRI stats provider tries to estimate the value of UsageNanoCores. This value can be
|
||||
// either 0 or between 10000 and 2e9.
|
||||
// Please refer, https://github.com/kubernetes/kubernetes/pull/95345#discussion_r501630942
|
||||
// for more information.
|
||||
"UsageNanoCores": gomega.SatisfyAny(gomega.BeZero(), bounded(10000, 2e9)),
|
||||
"UsageCoreNanoSeconds": bounded(10000000, 1e15),
|
||||
}),
|
||||
"Memory": ptrMatchAllFields(gstruct.Fields{
|
||||
|
Loading…
Reference in New Issue
Block a user