Reputation: 27021
I develop a Kubernetes controller in Go.
I just learned that Result.Requeue
will be deprecated [1].
Now I want to use Result.RequeueAfter
. But now my envTests fail.
In the envTest I use Eventually()
with a timeout of two seconds. This worked fine up to now.
Result.Requeue
had the benefit, that there was exponential back-off.
Now I need to return a value in Result.RequeueAfter
.
When I take a short value, then this might create useless load (it can take up to 10 minutes for my external system to be in the desired state).
When I take a long value, then the time the user needs to wait might be too long.
In my case I think a value of 10 seconds is fine. But I do not want to wait 10 seconds in a test.
How would you solve that?
Upvotes: 1
Views: 82