Skip to content

Commit 504ba68

Browse files
committed
noticed that this exact check is done above on L264
Signed-off-by: Kevin <[email protected]>
1 parent 59bab13 commit 504ba68

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: pkg/quotaplugins/quota-simple-rest/quota_rest_manager.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ func (qm *QuotaManager) Fits(aw *arbv1.AppWrapper, awResDemands *clusterstateapi
261261
proposedPreemptions []*arbv1.AppWrapper) (bool, []*arbv1.AppWrapper, string) {
262262

263263
// Handle uninitialized quota manager
264+
// If a url does not exists then assume fits quota
264265
if len(qm.url) <= 0 {
265266
return true, proposedPreemptions, ""
266267
}
@@ -287,11 +288,6 @@ func (qm *QuotaManager) Fits(aw *arbv1.AppWrapper, awResDemands *clusterstateapi
287288
}
288289

289290
doesFit := false
290-
// If a url does not exists then assume fits quota
291-
if len(qm.url) < 1 {
292-
klog.V(4).Infof("[Fits] No quota manager exists, %#v meets quota by default.", awResDemands)
293-
return doesFit, nil, ""
294-
}
295291

296292
uri := qm.url + "/quota/alloc"
297293
buf := new(bytes.Buffer)

0 commit comments

Comments
 (0)