Skip to content

Commit

Permalink
add UTs for CPUSuppress
Browse files Browse the repository at this point in the history
Signed-off-by: saintube <saintube@foxmail.com>
  • Loading branch information
saintube committed Apr 29, 2022
1 parent 5e482c6 commit d68738b
Show file tree
Hide file tree
Showing 2 changed files with 1,406 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/koordlet/resmanager/cpu_suppress.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ func (r *CPUSuppress) suppressBECPU() {
klog.Warningf("suppressBECPU failed, cannot check the featuregate, err: %s", err)
return
} else if disabled {
r.recoverCFSQuotaIfNeed()
r.recoverCPUSetIfNeed()
klog.V(5).Infof("suppressBECPU skipped, nodeSLO disable the featuregate")
return
}
Expand Down
Loading

0 comments on commit d68738b

Please sign in to comment.