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

🌱 Use k8s apimachinery scheme builder instead of controller-runtime scheme builder #1360

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

kashifest
Copy link
Member

This is recommend for the CAPI providers as mentioned the v1.5 to v1.6 migration guide: https://cluster-api.sigs.k8s.io/developer/providers/migrations/v1.5-to-v1.6#suggested-changes-for-providers.

The original issue was discussed in kubernetes-sigs/cluster-api#9011. The issue is using controller-runtime based scheme builder causes a lot of unnecessary dependancies added in go modules. Compared to that apimachinery was chosen as a better alternative.

…eme builder

Signed-off-by: Kashif Khan <kashif.khan@est.tech>
@metal3-io-bot metal3-io-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 14, 2023
@kashifest
Copy link
Member Author

/test-ubuntu-integration-main
/test-centos-e2e-integration-main

@kashifest
Copy link
Member Author

/keep-test-ubuntu-integration-main

1 similar comment
@kashifest
Copy link
Member Author

/keep-test-ubuntu-integration-main

@kashifest
Copy link
Member Author

/test-ubuntu-integration-main

@kashifest
Copy link
Member Author

/override keep-test-ubuntu-integration-main

@metal3-io-bot
Copy link
Contributor

@kashifest: Overrode contexts on behalf of kashifest: keep-test-ubuntu-integration-main

In response to this:

/override keep-test-ubuntu-integration-main

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.

Copy link
Member

@lentzi90 lentzi90 left a comment

Choose a reason for hiding this comment

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

/approve

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lentzi90

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

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 20, 2023
@lentzi90
Copy link
Member

I see this did not affect the go modules. Should we update/clean them also, or do we still depend on the controller-runtime scheme builder is some place?

@smoshiur1237
Copy link
Member

I see this did not affect the go modules. Should we update/clean them also, or do we still depend on the controller-runtime scheme builder is some place?

As it is not affecting the go modules and test with gomod is passing. We can take this in.

Copy link
Member

@smoshiur1237 smoshiur1237 left a comment

Choose a reason for hiding this comment

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

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 21, 2023
@metal3-io-bot metal3-io-bot merged commit 78377ef into metal3-io:main Dec 21, 2023
17 checks passed
@metal3-io-bot metal3-io-bot deleted the add/new-scheme-builder branch December 21, 2023 12:05
@kashifest
Copy link
Member Author

I see this did not affect the go modules. Should we update/clean them also, or do we still depend on the controller-runtime scheme builder is some place?

Yes, I wondered the same. My understanding is we didnt directly imported any module named sigs.k8s.io/controller-runtime/pkg/scheme which we removed here, rather we use sigs.k8s.io/controller-runtime module and that is something which is still used so no change in go module.

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. 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.

4 participants