Skip to content

Unexpected false Requeue in result.Min #1889

Open
@ilyee

Description

Description

Observed Behavior:
If nodeclaim's initialized condition is false and registered condition is true, here all the items in results will have a zero RequeueAfter, and this function will throw a result with Requeue is false and RequeueAfter is zero.

func Min(results ...reconcile.Result) (result reconcile.Result) {
min := time.Duration(math.MaxInt64)
for _, r := range results {
if r.IsZero() {
continue
}
if r.RequeueAfter < min {
min = r.RequeueAfter
result.RequeueAfter = min
result.Requeue = true
}
}
return
}

Expected Behavior:
maybe we should set Requeue to true

Reproduction Steps (Please include YAML):

Versions:

  • Chart Version: 0.36.0
  • Kubernetes Version (kubectl version): 1.30.0

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.triage/needs-informationIndicates an issue needs more information in order to work on it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions