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

Drop VPA vendor directory in favor of Go modules #6901

Closed
wants to merge 4 commits into from

Conversation

fmuyassarov
Copy link
Member

@fmuyassarov fmuyassarov commented Jun 7, 2024

What type of PR is this?

/kind cleanup
/kind deprecation

What this PR does / why we need it:

Drop vertical-pod-autoscaler vendor directory in favor of Go modules. We're started this process
from cluster-autoscaler in #6572.

Which issue(s) this PR fixes:

Fixes #4878

Special notes for your reviewer:

After this I will file one more PR for dropping vendor-directory in addon-resizer too.

Does this PR introduce a user-facing change?


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


Refactor 'hack/for-go-proj.sh' script to accommodate changes in
vendor directory of vertical-pod-autoscaler.

Signed-off-by: Feruzjon Muyassarov <[email protected]>
@k8s-ci-robot k8s-ci-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/deprecation Categorizes issue or PR as related to a feature/enhancement marked for deprecation. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 7, 2024
@k8s-ci-robot k8s-ci-robot requested review from feiskyer and voelzmo June 7, 2024 08:48
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: fmuyassarov
Once this PR has been reviewed and has the lgtm label, please assign kgolab for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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 size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jun 7, 2024
@fmuyassarov
Copy link
Member Author

/cc @x13n @Shubham82

@k8s-ci-robot k8s-ci-robot requested review from Shubham82 and x13n June 7, 2024 08:48
@k8s-ci-robot
Copy link
Contributor

@fmuyassarov: 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-kubernetes-e2e-autoscaling-vpa-full 6b18596 link false /test pull-kubernetes-e2e-autoscaling-vpa-full

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

@x13n
Copy link
Member

x13n commented Jun 7, 2024

#4878 was specifically about CA. We need to check with VPA owners if this is also a desired change here.

/assign kwiesmueller

@kwiesmueller
Copy link
Member

Personally I prefer having a vendor directory as it makes it way easier to review the actual code being patched in PRs (which is getting more and more essential in a time where supply chain attacks are on the rise).
We still need CI that checks that the checked-in vendor files match the mod file to avoid malicious vendor check-ins, but the review ergonomics become way better with a vendor dir.

/assign @raywainman @voelzmo
Marco, Ray, what do you think?

@kwiesmueller
Copy link
Member

Another argument from my personal experience with this discussion (I can't count anymore how many projects we had this discussion on), is that CI usually became slower and flakier (network issues) when we relied on the build process pulling the vendors every build. Not sure if we have good enough caching on GitHub.

@fmuyassarov
Copy link
Member Author

Hey folks. I don't have a strong opinion on this nor I don't have a reason to push. If you think it creates problems rather than improving the project, I would say we better close the PR (at least for the time being).
Thanks for your opinions.
/close

@k8s-ci-robot
Copy link
Contributor

@fmuyassarov: Closed this PR.

In response to this:

Hey folks. I don't have a strong opinion on this nor I don't have a reason to push. If you think it creates problems rather than improving the project, I would say we better close the PR (at least for the time being).
Thanks for your opinions.
/close

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-sigs/prow repository.

@fmuyassarov fmuyassarov deleted the drop-vendor-dir branch June 17, 2024 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/vertical-pod-autoscaler cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/deprecation Categorizes issue or PR as related to a feature/enhancement marked for deprecation. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Abandon checked-in vendor directory in Cluster Autoscaler
6 participants