Repository navigation
v3: Propagate --kube-context, --kubeconfig and --namespace values to plugins - #6632
Merged
Merged
Conversation
mumoshu
commented
Oct 11, 2019
| "HELM_REGISTRY_CONFIG": s.RegistryConfig, | ||
| "HELM_REPOSITORY_CACHE": s.RepositoryCache, | ||
| "HELM_REPOSITORY_CONFIG": s.RepositoryConfig, | ||
| "HELM_NAMESPACE": s.Namespace, |
Contributor
Author
There was a problem hiding this comment.
The name HELM_NAMESPACE is borrowed form an another PR from @adamreese https://github.com/helm/helm/pull/6508/files#r330893957
Other two are named such so that they become consistent with all the other envvars.
databus23
reviewed
Oct 11, 2019
| "HELM_REPOSITORY_CONFIG": s.RepositoryConfig, | ||
| "HELM_NAMESPACE": s.Namespace, | ||
| "HELM_KUBECONTEXT": s.KubeContext, | ||
| "HELM_KUBECONFIG": s.KubeConfig, |
Contributor
There was a problem hiding this comment.
How about exposing this as KUBECONFIG for plugins? That way invocations ofhelm (or kubectl) from a plug-in would automatically pick in the correct config. This would have to be conditional so that if —kubeconfig is not set we don‘t clobber a value set in the KUBECONFIG env var
Contributor
Author
There was a problem hiding this comment.
@databus23 Sounds good! Addressed in the last commit.
…plugins Closes helm#6631 Signed-off-by: Yusuke Kuoka <[email protected]>
mumoshu
force-pushed
the
add-plugin-envvars
branch
from
October 11, 2019 12:06
da351de to
69adc5a
Compare
bacongobbler
approved these changes
Oct 11, 2019
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.
What this PR does / why we need it:
Closes #6631
Special notes for your reviewer:
If applicable: