Skip to content

Conversation

troy0820
Copy link
Member

@troy0820 troy0820 commented Sep 9, 2025

When using fake.NewClientBuilder, you recieve a client.WithWatch. However, having many instances of the fake.ClientBuilder can cause issues when trying to call Build() where the behavior is inconsistent in testing.

This will now panic when trying to use two instances of the clientBuilder and using build in both of those instances.

Resolves #3313

Signed-off-by: Troy Connor <troy0820@users.noreply.github.com>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 9, 2025
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 9, 2025
Signed-off-by: Troy Connor <troy0820@users.noreply.github.com>
@alvaroaleman alvaroaleman added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Sep 9, 2025
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 9, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alvaroaleman, troy0820

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

The pull request process is described here

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
Copy link
Contributor

LGTM label has been added.

Git tree hash: 17bd5a65afd42f7281c7380003307832d4338eb1

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 9, 2025
@k8s-ci-robot k8s-ci-robot merged commit 5853152 into kubernetes-sigs:main Sep 9, 2025
11 checks passed
@alvaroaleman
Copy link
Member

thanks!

@troy0820
Copy link
Member Author

troy0820 commented Sep 9, 2025

/cherry-pick release-0.22

@k8s-infra-cherrypick-robot

@troy0820: new pull request created: #3315

In response to this:

/cherry-pick release-0.22

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.

4 participants