mirror of https://github.com/k3s-io/k3s
Merge pull request #66818 from foxyriver/expectnoerror-check
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. need ExpectNoError check **What this PR does / why we need it**: err need ExpectNoError check **Release note**: ```release-note NONE ```pull/8/head
commit
4bec356e01
|
@ -543,6 +543,9 @@ func sendRestRequestToScheduler(c clientset.Interface, op string) (string, error
|
|||
func getSchedulingLatency(c clientset.Interface) (*SchedulingMetrics, error) {
|
||||
result := SchedulingMetrics{}
|
||||
data, err := sendRestRequestToScheduler(c, "GET")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
samples, err := extractMetricSamples(data)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue