Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

demonstration of a possible oversight #456

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions reconcilers/sequence.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ func (r Sequence[T]) Reconcile(ctx context.Context, resource T) (Result, error)
for i, reconciler := range r {
log := logr.FromContextOrDiscard(ctx).
WithName(fmt.Sprintf("%d", i))
ctx := logr.NewContext(ctx, log)
subCtx := logr.NewContext(ctx, log)

result, err := reconciler.Reconcile(ctx, resource)
result, err := reconciler.Reconcile(subCtx, resource)
aggregateResult = AggregateResults(result, aggregateResult)
if err != nil {
return result, err
Expand Down
Loading