-
Notifications
You must be signed in to change notification settings - Fork 573
DNM: Bpfman operator APIs review #2521
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
base: master
Are you sure you want to change the base?
DNM: Bpfman operator APIs review #2521
Conversation
Signed-off-by: Mohamed Mahmoud <[email protected]>
Hello @andreaskaris! Some important instructions when contributing to openshift/api: |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Testing out the Claude API review I'm working on
Looks like its picked up a few helpful things in there about markers that are not documented in the godocs |
98d0a53
to
e41b4c9
Compare
Signed-off-by: Andreas Karis <[email protected]>
e41b4c9
to
046259e
Compare
@JoelSpeed cool I'll address those and I'll ping you once I need that human review (I so far fixed some issues with the Config resource, first), thanks! |
1588c9c
to
2dca2ef
Compare
Method GetClientObject is not used and removing it removes the dependency on sigs.k8s.io/controller-runtime/pkg/client Signed-off-by: Andreas Karis <[email protected]>
Signed-off-by: Andreas Karis <[email protected]>
2dca2ef
to
7ebee29
Compare
@JoelSpeed This is ready for another AI review and/or human review. Changes:
Question: according to https://github.com/openshift/enhancements/blob/master/dev-guide/api-conventions.md#no-functions:
So should we remove the methods in the aforementioned files, or are those o.k.? Thanks |
It appears (and I haven't checked the whole diff) that most if not all of your functions are "getters", since getters don't introduce new dependencies, they are fairly innocuous, but they do also form part of your API surface once you have introduced them. Personally, I'd lean on removing them and just fetching the fields directly, but they don't look like they'll necessarily cause issues |
@andreaskaris: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
Apis review for bpfman-operator in preparation for GA.
This is a follow-up to #2221
The second commit adds a new Config CRD (the plan is to squash all commits together eventually but right now for the review for clarity to keep the "old" stuff and the new additions separate)