mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Relax matching on pod_memory_working_set_bytes metrics
Relaxes matching of pod_memory_working_set_bytes metric so that we won't error due to presence of other pods. Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
This commit is contained in:
parent
25a04096e8
commit
56c104a440
@ -93,7 +93,7 @@ var _ = framework.KubeDescribe("ResourceMetricsAPI [NodeFeature:ResourceMetrics]
|
||||
fmt.Sprintf("%s::%s", f.Namespace.Name, pod1): boundedSample(0, 100),
|
||||
}),
|
||||
|
||||
"pod_memory_working_set_bytes": gstruct.MatchAllElements(podID, gstruct.Elements{
|
||||
"pod_memory_working_set_bytes": gstruct.MatchElements(podID, gstruct.IgnoreExtras, gstruct.Elements{
|
||||
fmt.Sprintf("%s::%s", f.Namespace.Name, pod0): boundedSample(10*e2evolume.Kb, 80*e2evolume.Mb),
|
||||
fmt.Sprintf("%s::%s", f.Namespace.Name, pod1): boundedSample(10*e2evolume.Kb, 80*e2evolume.Mb),
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user