Skip to content

Commit 53e3ff3

Browse files
committed
docs: remove unneeded ctx from example
Signed-off-by: cprivitere <23177737+cprivitere@users.noreply.github.com>
1 parent 0132b45 commit 53e3ff3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/book/src/developer/providers/getting-started/controllers-and-reconciliation.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,8 @@ If our cluster was just created, the Cluster API controller may not have set the
150150

151151
```go
152152
func (r *MailgunClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
153-
// You'll eventually get rid of this and use a context passed in from your main.go
154-
ctx := context.Background()
155-
156153
// We change the _ to `log` since we're going to log something now
157-
log = ctrl.LoggerFrom(ctx)
154+
log = ctrl.LoggerFrom(ctx)
158155

159156
var mailgunCluster infrav1.MailgunCluster
160157
if err := r.Get(ctx, req.NamespacedName, &mailgunCluster); err != nil {

0 commit comments

Comments
 (0)