-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
add mod file for controller pkg #4062
Conversation
Whoa! Easy there, Partner!This PR is too big. Please break it up into smaller PRs. |
🤖 Generated by lychee actionSummary
Full action output |
Codecov ReportAll modified lines are covered by tests ✅ see 1 file with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
/cherry-pick release-v4.4 |
🤖 says: Error cherry-picking. |
🤖 says: |
🤖 Generated by Copilot at 6f1028e
Summary
📦🔧🧹
This pull request refactors the module structure and dependencies of the
sealos
project, especially for the controllers. It introduces a newcontrollers/pkg
module that contains common packages for other controllers, and updates thego.mod
files and imports in each controller to use the new module. It also removes unused or outdated code, such as thedeprecate/pkg/buildah
package, and improves the code style and clarity of some constants and imports.Walkthrough
sealos
module into submodules, and created a newcontrollers/pkg
module to contain common packages for other controllers (link, link, link, link, link, link, link, link, link, link)go.mod
files incontrollers/account
,controllers/admission
,controllers/licenseissuer
, andcontrollers/resources
to use the latest versions of some indirect dependencies (link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link)admissionV1
anduserV1
toadmissionv1
anduserv1
respectively incontrollers/account/api/v1/debt_webhook.go
to match the imported package names and avoid confusion (link, link, link)v1
incontrollers/account/api/v1/debt_webhook.go
alphabetically for consistency and readability (link)github.com/labring/sealos/pkg/utils/retry
from the packagecontrollers
incontrollers/resources/controllers/monitor_controller.go
(link)go.mod
files incontrollers/account
,controllers/admission
, andcontrollers/resources
(link, link, link, link, link)deprecate/pkg/buildah
directory, which contained unused and outdated code for building container images (link, link, link, link, link, link, link, link, link, link)