Skip to content
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

Allow namespace to be set by programs consuming helm. #6798

Merged
merged 3 commits into from Oct 28, 2019
Merged

Allow namespace to be set by programs consuming helm. #6798

merged 3 commits into from Oct 28, 2019

Conversation

aaronmell
Copy link

Signed-off-by: Aaron Mell amell@lumindigital.com
When consuming the helm client, there is no way to correctly set the namespace except via an env variable, and that doesn't work with terraform possibly running the client concurrently in multiple namespaces.

I'm not sure if you want to expose Namespace. If thats the case, maybe a SetNamespace function?

Signed-off-by: Aaron Mell <amell@lumindigital.com>
@helm-bot helm-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 27, 2019
@bacongobbler
Copy link
Member

Would you mind writing a unit test to cover this?

@aaronmell
Copy link
Author

aaronmell commented Oct 27, 2019

@bacongobbler Sure, were you thinking a test to verify that the namespace is correct? or something else?

@thomastaylor312 thomastaylor312 added breaking feature v3.x Issues and Pull Requests related to the major version v3 labels Oct 28, 2019
@thomastaylor312 thomastaylor312 added this to the 3.0.0 milestone Oct 28, 2019
@thomastaylor312
Copy link
Contributor

Labeled as breaking because it is changing a publicly exported function signature

bc2cd3c

Signed-off-by: Aaron Mell <amell@lumindigital.com>
@helm-bot helm-bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 28, 2019
@aaronmell
Copy link
Author

@bacongobbler @thomastaylor312 I reworked my change to reduce the scope, I think its a better way to fix it than changing the Namespace scope.

Copy link
Contributor

@thomastaylor312 thomastaylor312 left a comment

Choose a reason for hiding this comment

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

This does look much cleaner. Just one thing to remove

cmd/helm/helm.go Outdated Show resolved Hide resolved
Signed-off-by: Aaron Mell <amell@lumindigital.com>
Copy link
Contributor

@thomastaylor312 thomastaylor312 left a comment

Choose a reason for hiding this comment

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

I'll let @bacongobbler give this one more look because he started review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking feature size/S Denotes a PR that changes 10-29 lines, ignoring generated files. v3.x Issues and Pull Requests related to the major version v3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants