-
Notifications
You must be signed in to change notification settings - Fork 103
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
Options.Namespace takes priority over ChartSpec.Namespace #104
Comments
I too would like to know how best to handle this. Should you create a new client each time you change namespace? |
👍 for this issue, having the same problem |
same issue here... |
I really hope that the problem reflected in this issue can be fixed as soon as possible |
just rolled into the same issue |
nxtcoder17
added a commit
to nxtcoder17/go-helm-client
that referenced
this issue
Jul 28, 2023
…espaces - fixes issue which caused helm charts to be applied to default namespace, even when a namespace has been specified in chartspec. read more at mittwald#104 - functionality wise, `actionConfig` and `clientGetter` are now lazily created with a namespace, prior to a chart being installed or updated
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My use case:
I have initialized a helm client, and I'm iterating through multiple charts and installing them one by one. Different charts go to different namespaces.
I've initialized the helm client like this:
and my ChartSpec looks like:
I've set the
ChartSpec.Namespace = "nopeus"
andChartSpec.CreateNamespace = true
accordingly and ranInstallOrUpgradeChart
with the chart.Yet when I run this, the charts are deployed to the default namespace instead of the intended
nopeus
namespace. Which isn't a behavior I would expect.I would love your help on this. Am I missing something? Is it a bug? Should I just create a new client every time (sounds weird)?
The text was updated successfully, but these errors were encountered: