Skip to content

Commit

Permalink
Stop turning runners context.Canceled error into nil.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsessler7 committed Dec 7, 2024
1 parent 9488662 commit 8dbae3c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions internal/kubernetes/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,6 @@ func (r *DiscoveryRunner) Start(ctx context.Context) error {
log.Error(err, "Unable to detect Kubernetes APIs")
}
case <-ctx.Done():
// TODO(controller-runtime): Fixed in v0.19.0
// https://github.com/kubernetes-sigs/controller-runtime/issues/1927
if errors.Is(ctx.Err(), context.Canceled) {
return nil
}
return ctx.Err()
}
}
Expand Down
5 changes: 0 additions & 5 deletions internal/registration/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,6 @@ func (r *Runner) Start(ctx context.Context) error {
r.changed()
}
case <-ctx.Done():
// TODO(controller-runtime): Fixed in v0.19.0
// https://github.com/kubernetes-sigs/controller-runtime/issues/1927
if errors.Is(ctx.Err(), context.Canceled) {
return nil
}
return ctx.Err()
}
}
Expand Down

0 comments on commit 8dbae3c

Please sign in to comment.