kubernetes-sigs / kubernetes-sigs/controller-runtime

Document ways to trigger/not trigger exponential backoff

Open
#808 13 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted kind/documentation lifecycle/frozen priority/important-longterm
Dominant language
Go
Stars
3k
Forks
1.3k
Avg merge
2d 5h
Merged PRs (30d)
14

Description

Related to #617

As a user of controller-runtime, it is not immediately clear what returns from a Reconcile() will force a requeue with (or without) an exponential backoff. Some quick examples:

return reconcile.Result{requeue: true}, nil

return reconcile.Result{requeueAfter: time.Duration(60) * time.Second}, nil

// err != nil
return reconcile.Result{}, fmt.Errorf("My custom error string")

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Reconcile() contract and reconcile.Result, using the three examples in the issue to trace when requeues receive exponential backoff. Document which return values trigger or avoid backoff, and verify that each example's behavior is explained clearly in the relevant controller-runtime documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.