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

Moves helm from being downloaded from curl, to being installed via hack/tools #97

Closed
wants to merge 1 commit into from

Conversation

JoshVanL
Copy link
Contributor

No description provided.

hack/tools

Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
@jetstack-bot jetstack-bot added the dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. label Jul 11, 2022
@jetstack-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoshVanL

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

@jetstack-bot jetstack-bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 11, 2022
@@ -6,59 +6,133 @@ require (
github.com/norwoodj/helm-docs v1.10.0
github.com/onsi/ginkgo v1.16.5
github.com/princjef/gomarkdoc v0.3.2
helm.sh/helm/v3 v3.9.0
Copy link
Member

Choose a reason for hiding this comment

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

How come we want to do this? It seems like it's quite a bit more expensive to build helm from scratch than it is to curl it, and I'm slightly concerned about awkward dependency conflicts in future too (what with us depending on controller-tools, kind, code-generator and helm in one go.mod).

Copy link
Contributor Author

@JoshVanL JoshVanL Jul 18, 2022

Choose a reason for hiding this comment

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

The intention is to have as much of our version management in one tooling (go modules), rather than split across multiple (go modules, Makefile vars + curl).

This helps to ensure tool versions don't get left behind.

Copy link
Member

@SgtCoDFish SgtCoDFish Aug 1, 2022

Choose a reason for hiding this comment

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

I'm a pretty strong -1 on actively changing from downloading binaries to building using go build. I wouldn't see much of a need to go out and change a Makefile which uses go build already, but I don't think we should go the other way and replace curl with go build. IMO it's a step backwards.

I don't see how it's any easier to bump a version number in a go.mod than it is to bump a version number in a Makefile - especially if it runs the risk of dependency hell as @munnerz points out.

IMO the ideal situation is downloading prebuilt binaries and checking their hashes to ensure they've not been tampered with. Fewer things that can go wrong, far less CPU usage, far less chance of Go dependency hell in the future. Also much easier to add retries with curl if something goes wrong or there's a network flake.

The intention is to have as much of our version management in one tooling (go modules), rather than split across multiple (go modules, Makefile vars + curl).

I'd argue we have two sets of tooling in this PR; we have two go.mod files, one for the application and one for tools. I think it's totally reasonable to have tool dependencies versioned in the Makefile and application dependencies versioned in the go.mod.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hear where you are both coming from. Since you're both against the PR I'll close it.

I think nix could be a really good solution to all of our tooling needs (:tm:) across cert-manager. The massive downside is that 1. developers will need to install nix, and 2. the team would need to learn nix. I'll perhaps add this as an agenda item for a future meeting.

/close

@jetstack-bot
Copy link
Contributor

@JoshVanL: Closed this PR.

In response to this:

Hear where you are both coming from. Since you're both against the PR I'll close it.

I think nix could be a really good solution to all of our tooling needs (:tm:) across cert-manager. The massive downside is that 1. developers will need to install nix, and 2. the team would need to learn nix. I'll perhaps add this as an agenda item for a future meeting.

/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/test-infra repository.

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. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants