Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚠️ Remove cache.BuilderWithOptions, and inheritance funcs #2300

Merged

Conversation

vincepri
Copy link
Member

@vincepri vincepri commented May 4, 2023

The function was previously created and used to override the Manager's NewCache function. Now that the Manager embeds cache options we can remove this function and all of the inheritance logic which is highly error prone.

The function was previously created and used to override the Manager's
NewCache function. Now that the Manager embeds cache options we can
remove this function and all of the inheritance logic which is highly
error prone.

Signed-off-by: Vince Prignano <[email protected]>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 4, 2023
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels May 4, 2023
@vincepri
Copy link
Member Author

vincepri commented May 4, 2023

Supersedes #2237

@vincepri
Copy link
Member Author

vincepri commented May 4, 2023

/retest

@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented May 4, 2023

@vincepri: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-controller-runtime-apidiff 54e84fc link false /test pull-controller-runtime-apidiff

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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/test-infra repository. I understand the commands that are listed here.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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:
  • OWNERS [alvaroaleman,vincepri]

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 lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 6, 2023
@k8s-ci-robot k8s-ci-robot merged commit 62e6867 into kubernetes-sigs:main May 6, 2023
mkowalski added a commit to mkowalski/kubernetes-nmstate that referenced this pull request Oct 19, 2023
In kubernetes-sigs/controller-runtime#2300 the
`cache.BuilderWithOptions` has been deprecated in favour of cache
options embeded in the Manager.

This PR rewrites our custom cache configuration to use the new way of
configuring it via those new options.
mkowalski added a commit to mkowalski/kubernetes-nmstate that referenced this pull request Oct 19, 2023
In kubernetes-sigs/controller-runtime#2300 the
`cache.BuilderWithOptions` has been deprecated in favour of cache
options embeded in the Manager.

This PR rewrites our custom cache configuration to use the new way of
configuring it via those new options.

Signed-off-by: Mat Kowalski <[email protected]>
mkowalski added a commit to mkowalski/kubernetes-nmstate that referenced this pull request Oct 19, 2023
In kubernetes-sigs/controller-runtime#2300 the
`cache.BuilderWithOptions` has been deprecated in favour of cache
options embeded in the Manager.

This PR rewrites our custom cache configuration to use the new way of
configuring it via those new options.

Signed-off-by: Mat Kowalski <[email protected]>
mkowalski added a commit to mkowalski/kubernetes-nmstate that referenced this pull request Oct 20, 2023
In kubernetes-sigs/controller-runtime#2300 the
`cache.BuilderWithOptions` has been deprecated in favour of cache
options embeded in the Manager.

This PR rewrites our custom cache configuration to use the new way of
configuring it via those new options.

Signed-off-by: Mat Kowalski <[email protected]>
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/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants