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

Create abstraction layer over controller-runtime/client-go versions #342

Merged
merged 2 commits into from
Jun 28, 2023

Conversation

justinsb
Copy link
Contributor

Create an abstraction layer so that we are less dependent on a particular version of client-go / controller-runtime. The intent here is that controllers can work with multiple versions of client-go/controller-runtime, and thus a wide range of k8s versions.

  • Make our applyset not depend on generics
  • Create commonclient to abstract controller-runtime versions

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 26, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: justinsb

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 k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 26, 2023
@justinsb
Copy link
Contributor Author

/wip

@k8s-ci-robot k8s-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Jun 26, 2023
@justinsb justinsb force-pushed the version_independent branch 2 times, most recently from 8c82662 to d33e962 Compare June 26, 2023 21:54
@yuwenma
Copy link
Contributor

yuwenma commented Jun 26, 2023

Thank you so much for adding this abstraction layer. LGTM (looks like the test caught some additional cases need to fix).

@justinsb justinsb force-pushed the version_independent branch 2 times, most recently from accf6e4 to a1d7789 Compare June 26, 2023 22:57
commonclient contains wrappers around functions we use from
controller-runtime which have changed between 0.11 and 0.15 (the version
range we are supporting currently).

This allows for buildtags to be used to select a previous version of
controller-runtime, without needing to carry patches.
@yuwenma
Copy link
Contributor

yuwenma commented Jun 28, 2023

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 28, 2023
@k8s-ci-robot k8s-ci-robot merged commit 33c89c9 into kubernetes-sigs:master Jun 28, 2023
3 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. 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.

None yet

3 participants