Skip to content

Bump Helm to v2.10.0 #82

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

Merged
merged 1 commit into from
Aug 27, 2018
Merged

Bump Helm to v2.10.0 #82

merged 1 commit into from
Aug 27, 2018

Conversation

mumoshu
Copy link
Collaborator

@mumoshu mumoshu commented Aug 21, 2018

Ran glide update and glide install --strip-vendor, followed by manual changes to glide.lock to revert k8s.io/* pkg versions to those seen in helm's glide.lock https://github.com/helm/helm/blob/cc7cc1087f586f64d0b0d08aa516a003ced2d85b/glide.lock#L457 to avoid build errors.

Resolves #81

- pkg/nstrvals
- pkg/helm
- pkg/tlsutil
- pkg/proto/hapi/release
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not entirely sure if this is good thing to do, but tried my best not to install unnecessary subpackages to vendor/ while building the project.

- name: k8s.io/apimachinery
version: 01bc873149a1802eb74df583613872d126449ed5
version: f6313580a4d36c7c74a3d845dda6e116642c4f90
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

After running glide update, I've manually updated this to the version that is also seen in helm's glide.lock.
From my observation, it was required in order to fix build errors due to version mismatch between apimachinery and json-iterator.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

According to the discussion on the k8s slack, I'm going to add respective version: ... settings to affected dependencies, so that we won't need to manually update these. Thx for your review @databus23!

- pkg/strvals
- pkg/sympath
- pkg/tlsutil
- pkg/urlutil
- pkg/version
- name: k8s.io/kubernetes
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Dislike the huge additional dependency here, but glide update added it anyway.

Copy link
Owner

Choose a reason for hiding this comment

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

Urks. How did the helm people managed to bring that back in... :(

Copy link
Owner

@databus23 databus23 Aug 21, 2018

Choose a reason for hiding this comment

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

Ah man. It seems the only reason k8s.io/kubernetes is pulled in is because of fake.go in k8s.io/helm/pkg/helm. And only because they use a single error from the k8s.io/helm/pkg/storage package in there. This is so unnecessary...

Copy link
Owner

Choose a reason for hiding this comment

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

This is clearly an accident. We should try to fix this upstream. We have had this before. helm/helm#2685

Copy link
Owner

Choose a reason for hiding this comment

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

So just by replacing storage.ErrReleaseNotFound(rlsName) with fmt.Errorf("release: %q not found", rlsName) three times in fake.go the kubernetes dependency goes away from k8s.io/pkg/helm

Copy link
Owner

Choose a reason for hiding this comment

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

I'm opening a PR upstream

@databus23
Copy link
Owner

databus23 commented Aug 21, 2018

So I opened helm/helm#4499. Lets wait for on initial reaction on the PR. If the helm maintainers accept the changes we can fork the dep and backport the change until a new helm release incorporates the changes (Thats what I did before)

@mumoshu
Copy link
Collaborator Author

mumoshu commented Aug 22, 2018

@databus23 Awesome! And the plan looks great. Thanks for your support.

Ran `glide update` and `glide install --strip-vendor`.
Added version specifications to k8s.io/apimachienery and k8s.io/apiserver according to helm's glide.lock https://github.com/helm/helm/blob/cc7cc1087f586f64d0b0d08aa516a003ced2d85b/glide.lock#L457 to prevent build errors.

The huge k8s.io/kubernetes dependency is introduced due to the upstream issue, helm/helm#4499.
It should be changed to our own fork, and the removed in the future once the upstream incorporates the fix.

Resolves databus23#81
@mumoshu
Copy link
Collaborator Author

mumoshu commented Aug 27, 2018

So I'm going to merge this to resolve #81 for now.
Hoping the upstream PR is reviewed relatively soon, so that we can fork and alter the dependency to point the fork for smaller binary size.

@mumoshu mumoshu merged commit 9f8c0d8 into databus23:master Aug 27, 2018
@mumoshu mumoshu deleted the helm-2.10 branch August 27, 2018 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants