-
Notifications
You must be signed in to change notification settings - Fork 32
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
Use namespace from kube context when namespace not supplied #69
Conversation
Hi @marksmithson , thanks for your contribution! 🎉 I have some concerns:
Tell us what you think about this. Thanks! |
The generated chart and perhaps the installation script are what should be deterministic, not the effect of running these scripts in an external environment (outside of bazel). This change does not affect that - it is just that the NAMESPACE is
How about we just set the default for the namespace attribute to ( ideally the default would be "", but using "default" is a reasonable compromise for backward campatibility. ) Note that some clusters may have deleted the default namespace, so it may not be a great "default" :) |
I like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@danigar , feel free to merge!
If the
namespace
attribute is not supplied to the rule helm is called with--namespace=default
.As a result the rule cannot be used to install the chart into the current namespace for the kubernetes context.
This MR prevents the
--namespace
argument being passed to helm when it is not specified.This change could affect users who are relying on the chart being installed in the
default
namespace where their kube context specifies an alternative namespace todefault
. This is unlikely, however can be mitigated by users specifyingnamespace="default"
when calling the rule