Skip to content

fix: update TracedClient to use wrappedruntimeclient.DefaultDecorator#1052

Open
ChihweiLHBird wants to merge 2 commits into
linode:mainfrom
ChihweiLHBird:zhiwei/fix-client-decorator-selection
Open

fix: update TracedClient to use wrappedruntimeclient.DefaultDecorator#1052
ChihweiLHBird wants to merge 2 commits into
linode:mainfrom
ChihweiLHBird:zhiwei/fix-client-decorator-selection

Conversation

@ChihweiLHBird
Copy link
Copy Markdown
Contributor

Not sure if there was a historic reason, but this seems to be a typo to me. It wraps a client so it should use wrappedruntimeclient, right?

Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the tracing decorator used when creating a traced controller-runtime client, switching from the runtime reconciler decorator to the runtime client decorator.

Changes:

  • Update TracedClient() in the LinodeFirewall controller to use wrappedruntimeclient.DefaultDecorator().
  • Update TracedClient() in the LinodeCluster controller to use wrappedruntimeclient.DefaultDecorator().

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
internal/controller/linodefirewall_controller.go Fixes TracedClient() to use the runtimeclient tracing decorator (instead of runtimereconciler).
internal/controller/linodecluster_controller.go Fixes TracedClient() to use the runtimeclient tracing decorator (instead of runtimereconciler).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants