Skip to content

Refactored the NOOP client into a separate package#504

Merged
gardener-prow[bot] merged 2 commits into
gardener:masterfrom
iypetrov:move-noopclient-to-a-separate-package
May 21, 2026
Merged

Refactored the NOOP client into a separate package#504
gardener-prow[bot] merged 2 commits into
gardener:masterfrom
iypetrov:move-noopclient-to-a-separate-package

Conversation

@iypetrov
Copy link
Copy Markdown
Contributor

How to categorize this PR?

/kind cleanup
/area logging

What this PR does / why we need it:
Refactored the NOOP client into a separate package + updated the New function to return a concrete struct instead of an interface, following the recommendation from 100 Go Mistakes (Chapter 7: “Returning interfaces”).

If we apply this idiom to Go, it means

  • Returning structs instead of interfaces
  • Accepting interfaces if possible

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

Refactored the NOOP client into a separate package.

iypetrov added 2 commits May 20, 2026 18:56
Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
…crete implemntation, not an interface

Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
@iypetrov iypetrov requested a review from nickytd as a code owner May 20, 2026 17:05
@gardener-prow gardener-prow Bot added kind/cleanup Something that is not needed anymore and can be cleaned up area/logging Logging related cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 20, 2026
Copy link
Copy Markdown

@Bobi-Wan Bobi-Wan left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@gardener-prow gardener-prow Bot added the lgtm Indicates that a PR is ready to be merged. label May 21, 2026
@gardener-prow
Copy link
Copy Markdown

gardener-prow Bot commented May 21, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Bobi-Wan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gardener-prow
Copy link
Copy Markdown

gardener-prow Bot commented May 21, 2026

LGTM label has been added.

DetailsGit tree hash: 69c2ca295f99e766430c37c00f8406cb6ea648ab

@gardener-prow gardener-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 21, 2026
@gardener-prow gardener-prow Bot merged commit b06814d into gardener:master May 21, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/logging Logging related cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. kind/cleanup Something that is not needed anymore and can be cleaned up lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants