-
Notifications
You must be signed in to change notification settings - Fork 483
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
[chore] move controllers under internal #3633
base: main
Are you sure you want to change the base?
Conversation
072aa2e
to
a4c1b01
Compare
This placement of |
Yes, i think we should do the kubebuilder v4 migration first as that unblocks a few other issues IIRC. |
I don't see an issue for moving to kubebuilder 4, is it ok to open one? Is anyone working on it? |
I dont see a huge downside of exposing it or benefit of moving it into internal here. Thats why I would prefer to just follow whatever kubebuilder standard is. |
The problem is that you're currently exposing incomplete APIs. It is possible other downstream projects may start to depend on it and bind you to a specific go API, which doesn't seem to be the intent of this project. See |
I am reading through kubebuilder resources; I see a reference to controllers in the kubebuilder book, but it's placed under internal: Is there a reference elsewhere to placing controllers under top level folder? |
It used to be at top level in v2: https://book-v2.book.kubebuilder.io/cronjob-tutorial/controller-implementation. I guess if it's under internal in subsequent versions, then moving it right now won't really make the migration any more difficult. |
a4c1b01
to
e9c6a0a
Compare
e9c6a0a
to
ee1aacf
Compare
Description:
Move controllers under internal so their API is not exported.