Skip to content

Requeue delay is always 1 min regardless of delay time requested #421

@ewassef

Description

@ewassef

Describe the bug
When a requeue is returned from the controller, the item is placed on the queue with a 1 minute interval regardless of what the code sends in
To Reproduce

In your ReconcileAsync method simple return return ResourceControllerResult.RequeueEvent(TimeSpan.FromMinutes(15));

Expected behavior

dbug: KubeOps.Operator.Kubernetes.ResourceWatcher[0]
      The server closed the connection. Trying to reconnect.
dbug: KubeOps.Operator.Controller.ManagedResourceController[0]
      Execute/Reconcile event "Reconcile" on resource "ClusterEntity/auto-sample-await".
dbug: ClusterController[0]
      Entered reconcile - state Verified - 4/25/2022 3:31:03 PM
info: KubeOps.Operator.Controller.ManagedResourceController[0]
      Event type "Reconcile" on resource "ClusterEntity/auto-sample-await" successfully reconciled. Requeue requested with delay "00:15:00".
dbug: KubeOps.Operator.Kubernetes.ResourceWatcher[0]
      The server closed the connection. Trying to reconnect.
dbug: KubeOps.Operator.Controller.ManagedResourceController[0]
      Execute/Reconcile event "Reconcile" on resource "ClusterEntity/auto-sample-await".
dbug: ClusterController[0]
      Entered reconcile - state Verified - 4/25/2022 3:32:03 PM <<== This shouldnt be every min, but should be every 15 mins

Additional context
This line seems to have something to do with the issue :
dbug: KubeOps.Operator.Kubernetes.ResourceWatcher[0] The server closed the connection. Trying to reconnect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions