WIP 🐛 fix(API): Move autoupdate/deploy-image/helm packages to internal#5520
Conversation
The autoupdate, deploy-image and helm optional plugins are only meant for CLI users. Their packages are not meant for external usage but have been exported to the public API of the SDK. Considering that they are underdocumented and not stable, they need to be moved to internal.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: vitorfloriano The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@vitorfloriano: The following test failed, say
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. DetailsInstructions 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. |
|
@camilamacedo86 I just realized we have a lot of PRs touching the I'll revert the changes so we don't mess the other PRs up. |
|
@camilamacedo86 Thinking better, the scope of this PR is too broad and touching too many parts. I also just found out that I had overlooked the fact that I still think we need to move some packages to internal, but it's better to do it incrementally, package by package, to minimize surprises. So I'm closing this one. Sorry about the noise. |
This PR moves the packages for the optional plugins
autoupdate,deploy-imageandhelmto./internal/plugins/optional.Those optional plugins are meant only for CLI users and their packages should not be part of the public API of the SDK, considering that they are underdocumented and not stable, hence they belong in internal.
Here's a summary of the current situation of each plugin:
Important
We are not moving the
grafanaplugin because it has already been imported by Operator SDK, as per the import stats onpkg.go.devand this search result.The project structure will go from this:
To this:
Note
We also moved the
deploy-imageplugin frompkg/plugins/go/to./internal/plugins/optionalfor consistency.Related to: #5277 (comment)