Skip to content

Remove fake FakeClient#6263

Merged
k8s-ci-robot merged 1 commit into
kubernetes-sigs:mainfrom
nojnhuh:real-fake-client
May 1, 2026
Merged

Remove fake FakeClient#6263
k8s-ci-robot merged 1 commit into
kubernetes-sigs:mainfrom
nojnhuh:real-fake-client

Conversation

@nojnhuh
Copy link
Copy Markdown
Contributor

@nojnhuh nojnhuh commented Apr 30, 2026

What type of PR is this?

What this PR does / why we need it:

controller-runtime implemented server-side apply in the fake client. Our tests worked around its absence by wrapping it in our own FakeClient with some light-touch logic to make sure that an apply was invoked. Now, the fake client produces the expected side effects where we can GET the applied objects and inspect them directly. This produces simpler and more robust tests.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests
  • cherry-pick candidate

Release note:

NONE

controller-runtime implemented server-side apply in the fake client. Our
tests worked around its absence by wrapping it in our own FakeClient
with some light-touch logic to make sure that an apply was invoked. Now,
the fake client produces the expected side effects where we can GET the
applied objects and inspect them directly. This produces simpler and
more robust tests.
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 30, 2026
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 30, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.88%. Comparing base (d328b5f) to head (dc662a2).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6263   +/-   ##
=======================================
  Coverage   43.88%   43.88%           
=======================================
  Files         289      289           
  Lines       25351    25351           
=======================================
  Hits        11125    11125           
  Misses      13448    13448           
  Partials      778      778           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nojnhuh
Copy link
Copy Markdown
Contributor Author

nojnhuh commented Apr 30, 2026

/kind cleanup

@k8s-ci-robot k8s-ci-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Apr 30, 2026
Copy link
Copy Markdown
Contributor

@willie-yao willie-yao 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

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 1, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: ec09f58a7f4c061926a5f4125b453d406e51e28b

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: willie-yao

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 1, 2026
@nojnhuh
Copy link
Copy Markdown
Contributor Author

nojnhuh commented May 1, 2026

/retest

@k8s-ci-robot k8s-ci-robot merged commit 6f1f830 into kubernetes-sigs:main May 1, 2026
22 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.24 milestone May 1, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in CAPZ Planning May 1, 2026
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants