Skip to content

Commit ee02f0f

Browse files
authored
Remove unused ResetRequeue function. (#8045)
1 parent 1bc6be9 commit ee02f0f

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

pkg/workload/workload.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,24 +1469,3 @@ func ReasonWithCause(reason, underlyingCause string) string {
14691469
func ClusterName(wl *kueue.Workload) string {
14701470
return ptr.Deref(wl.Status.ClusterName, "")
14711471
}
1472-
1473-
// ResetRequeue resets the requeue state of the workload as well as all admission checks
1474-
// It returns true if the workload was modified.
1475-
func ResetRequeue(wl *kueue.Workload) bool {
1476-
var updated bool
1477-
1478-
if wl.Status.RequeueState != nil {
1479-
wl.Status.RequeueState = nil
1480-
updated = true
1481-
}
1482-
for i := range wl.Status.AdmissionChecks {
1483-
if wl.Status.AdmissionChecks[i].RequeueAfterSeconds == nil || wl.Status.AdmissionChecks[i].RetryCount == nil {
1484-
continue
1485-
}
1486-
wl.Status.AdmissionChecks[i].RequeueAfterSeconds = nil
1487-
wl.Status.AdmissionChecks[i].RetryCount = nil
1488-
updated = true
1489-
}
1490-
1491-
return updated
1492-
}

0 commit comments

Comments
 (0)