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

🌱 Move /exp/controllers to internal #5651

Merged

Conversation

shivanshuraj1333
Copy link
Contributor

What this PR does / why we need it:
Move /exp/controllers 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):
Ref: #5455

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 12, 2021
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 12, 2021
@sbueringer
Copy link
Member

sbueringer commented Nov 12, 2021

Hey @shivanshu1333,
thx for opening this PR! Some tips on how to resolve the open issues:

  • golangci-lint: You can either run make lint-fix (which rungs golangci-lint with the -fix flag) or goimports and gofmt manually
  • verify-main: You have to add: paths=./$(EXP_DIR)/internal/... \ after paths=./$(EXP_DIR)/controllers/... \ in our top-level Makefile

Otherwise the PR looks great!

@shivanshuraj1333
Copy link
Contributor Author

Thank you! I've updated the PR :)

@fabriziopandini
Copy link
Member

@shivanshu1333 thanks! PR looks great

Could you kindly add this PR to the list under API change documentation for provider implementers

@sbueringer
Copy link
Member

@shivanshu1333 thanks! PR looks great

Could you kindly add this PR to the list under API change documentation for provider implementers

+1 and please with the /controllers suffix (as that's the package we're actually moving), cf. https://github.com/kubernetes-sigs/cluster-api/pull/5647/files

@killianmuldoon
Copy link
Contributor

/retest

Copy link
Member

@sbueringer sbueringer left a comment

Choose a reason for hiding this comment

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

Thx!, last nit from my side

docs/book/src/developer/providers/v1.0-to-v1.1.md Outdated Show resolved Hide resolved
exp/internal/controllers/doc.go Show resolved Hide resolved
@fabriziopandini
Copy link
Member

lgtm pending addressing latest comments

@sbueringer
Copy link
Member

@shivanshu1333 Thx, looks great!

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 17, 2021
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 19, 2021
@k8s-ci-robot k8s-ci-robot removed lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Nov 22, 2021
@shivanshuraj1333
Copy link
Contributor Author

/retest

@k8s-ci-robot
Copy link
Contributor

@shivanshu1333: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cluster-api-apidiff-main 1c93435 link false /test pull-cluster-api-apidiff-main

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@sbueringer
Copy link
Member

sbueringer commented Nov 24, 2021

/lgtm

You can ignore the apidiff. The markdown link check can (by us) afaik only be retrigger by another commit -amend + push -force. I'm not sure if it blocks the merge. PR status seems to suggest it doesn't https://prow.k8s.io/pr?query=is%3Apr+repo%3Akubernetes-sigs%2Fcluster-api+author%3Ashivanshu1333+head%3Acleanup%2Fmain%2F5455

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 24, 2021
@sbueringer
Copy link
Member

/assign @fabriziopandini

@sbueringer
Copy link
Member

@fabriziopandini If you have some time, this PR should be ready for merge now.

@fabriziopandini
Copy link
Member

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[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 /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 Nov 30, 2021
@k8s-ci-robot k8s-ci-robot merged commit 2f2fd88 into kubernetes-sigs:main Nov 30, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.1 milestone Nov 30, 2021
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/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.

6 participants