File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -1469,24 +1469,3 @@ func ReasonWithCause(reason, underlyingCause string) string {
14691469func 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- }
You can’t perform that action at this time.
0 commit comments