Repository navigation
fix(pkg/cli): ensure correct configuration from kubeconfig file - #7982
Merged
Merged
Conversation
adamreese
commented
Apr 23, 2020
Comment on lines
+115
to
+118
| // broken, these are populated from helm flags and not kubeconfig. | ||
| "HELM_KUBECONTEXT": s.KubeContext, | ||
| "HELM_KUBETOKEN": s.KubeToken, | ||
| "HELM_KUBEAPISERVER": s.KubeAPIServer, |
Member
Author
There was a problem hiding this comment.
Not sure what to do with this
Member
There was a problem hiding this comment.
Same... I don't understand their purpose in the first place. I guess leaving them alone is the safest bet.
technosophos
approved these changes
Apr 23, 2020
technosophos
left a comment
Member
There was a problem hiding this comment.
LGTM. cobra.OnInitialize is GREAT
Bind Helm flags to Kubernetes configuration loader to get a merged config with kubeconfig. Fixes: helm#7539 Signed-off-by: Adam Reese <[email protected]>
adamreese
force-pushed
the
fix/7539-kube-client-config
branch
from
April 23, 2020 19:20
4b5248c to
4a0dfbe
Compare
technosophos
approved these changes
Apr 23, 2020
technosophos
left a comment
Member
There was a problem hiding this comment.
Re-reviewed with the changes to the unit tests.
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.
Bind Helm flags to Kubernetes configuration loader to get a merged
config with kubeconfig.
Fixes: #7539