You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v3: --kube-context, --kubeconfig and --namespace values are not passed to plugins #6631
While upgrading helm-diff to work with helm v3, we noticed that a few settings that formerly passed via the local proxy to Tiller now need to be passed explicitly to plugins:
This is due to that some plugin like helm-diff does need to access release objects normally managed by helm.
More concretely, as of today when a plugin like helm-diff is invoked via helmv3 --kubeconfig mykubeconfig --kube-context mycontext --namespace myns diff upgrade myrelease mychart, the plugin needs all the three settings in order to read the release object for myrelease, but there's no way to access those from within the plugin.
Proposed solution
I believe these 3 settings should somehow be propagated to plugins. I'd suggest using envvars as it seems like the primary way to pass contextual settings to plugins today:
Agreed. Now with tiller removed this is the core piece that plugins need to connect to the Kubernetes API. In a way, it's a usability regression. I'll add this into the beta.5 for review.
Activity
v3: Propagate --kube-context, --kubeconfig and --namespace values to …
mumoshu commentedon Oct 11, 2019
@bacongobbler Hey! Thanks for confirming this.
Can we consider this as a fix and link the PR for this(#6632) to any of the prereleases of v3.0.0, hopefully, 3.0.0-beta.5?
From a plugin maintainer's perspective, I'm considering this a kind of regression due to the removal of Tiller.
bacongobbler commentedon Oct 11, 2019
Agreed. Now with tiller removed this is the core piece that plugins need to connect to the Kubernetes API. In a way, it's a usability regression. I'll add this into the beta.5 for review.
v3: Propagate --kube-context, --kubeconfig and --namespace values to …
bacongobbler commentedon Oct 11, 2019
closed via #6632