-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🌱 Move docker controller to internal #5595
🌱 Move docker controller to internal #5595
Conversation
Welcome @kaitoii11! |
Hi @kaitoii11. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
:seedling:
Move docker controller to internal
:seedling:
Move docker controller to internalThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaitoii11 thanks for your first PR in Cluster API and welcome on the team!
change look great, only a small nit not blocking from my side
// DockerClusterReconciler reconciles a DockerMachine object. | ||
type DockerClusterReconciler struct { | ||
Client client.Client | ||
Log logr.Logger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind to drop this field and replace it's usage with ctrl.LoggerFrom(ctx)
(not strictly related to this change, it is also fine to open an issue/send a follow up PR to address this)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made the changes to use ctrl.LoggerFrom(ctx)
.
/ok-to-test |
test/infrastructure/docker/internal/controllers/dockercluster_controller.go
Show resolved
Hide resolved
15f2f93
to
0771bd7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one last nit + CI errors to be addressed, otherwise lgtm from my side
/retest
limitations under the License. | ||
*/ | ||
|
||
// Package controllers implements the Docker controllers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file required?
Also the godoc seem not in line with "internal"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created the file in the wrong directory and I have committed the change.
But if the file itself is unnecessary, I can remove the file.
/retest |
The tests fail because of the RBAC change:
I think this can be fixed by adjusting test/infrastructure/docker/Makefile | generate-manifests by adding the new internal folder. (below controllers/...) and re-running make -C ./test/infrastructure/docker generate-manifests |
lgtm pending squash |
8266b1d
to
1954640
Compare
/lgtm Thank you very much! |
@kaitoii11 could you kindly fix one things I forgot in the previous pass 😅 You should add this PR into API change documentation for provider implementers |
It looks like it is added in #5647 is it not? |
Yup. I thought I'll just take care of it because I have to modify that doc anyway. (but of course fine for me to already add it here in this PR) |
I'll just add a line referencing this PR in the documentation then. |
1954640
to
d20822c
Compare
Thx! |
/lgtm Checks are happy, and this looks good to me. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini 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 |
What this PR does / why we need it:
Move Docker controller package to internal and create alias.go for exposing Reconciler
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes
Ref #5455