Repository navigation
remove tiller/environment dependency from plugin package - #2685
Merged
Merged
Conversation
Contributor
|
I don't see any problem with this but also don't understand why that dependency was taken in the first place. |
technosophos
approved these changes
Jul 24, 2017
technosophos
left a comment
Member
There was a problem hiding this comment.
I totally agree with this one. I think the existing code is a "micro-optimization" gone awry. This change is clearly a sensible step.
This was referenced Aug 21, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This might be controversial. I'm putting this PR out to get some feedback on this.
While writing the helm-diff plugin starting with helm 2.3 I suddenly pulled in a dependency on
github.com/kubernetes/kuberneteswhich as you all know is quite a heavy cross to bear.Needless to say this is totally unnecessary because the plugin just want to talk to tiller via grpc and does not interact with kubernetes directly.
It also inflates the resulting binary from 13MB to 63MB which is at least a little annoying.
I looked into this a little and turns it is because of a dependency from
k8s.io/helm/pkg/plugintok8s.io/helm/pkg/tiller/environment. Its only used to access theTillerNamespaceEnvVarconstant.k8s.io/helm/pkg/pluginis used byk8s.io/helm/pkg/downloaderwhich is the package I need to import to reproduce the downloading of charts. Arguably these things have nothing todo with kubernetes und having a lighter dependency graph would improve the usability of these packages as libraries considerably.What do you think?