-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Set namespace for subcharts using values.yaml #5358
Comments
@bacongobbler with the addition of State Management and the removal of Tiller in v3, will it be possible to use multiple namespaces in the one release? |
@crubier For v2, you could install each namespace individually using |
@hickeyma using tags might be a fair workaround for me in this case. Tag subcharts with different values and execute one release per namespace |
This feels like a solid use case for helmfile. I don't think this will be resolved in Helm 3 as the original post is requesting a new feature within requirements.yaml (or Chart.yaml in Helm 3). We haven't ironed out the details for managing a single release across multiple namespaces, though several community members have written tools to manage that state across the cluster. See also #980 for some background context/disucssion on this topic. |
@bacongobbler this is not use case for helmfile, as I don't really want to add an additional third party alpha dependency to this (already quite complex) stack, that will have to run in various environments. Using tags and multiple releases allows me to work around, but with a pretty high complexity. |
@crubier the proposal you outlined would suit are use-case and looks very ergonomic. I too tried this, assuming that would work, but no. |
I've been able to work around this by introducing an |
Is there any update on support for this? |
This would definitely be useful in my scenario where I have mutliple helm subcharts across different namespaces. |
would be useful for cases like deploying external-dns or aws-alb-ingress together with your stack as options. |
The approach I took was to combine In the scenario below when an umbrella chart has a dependency and its dependency has its own dependency, just overriding nemespace on the first level is not flexible enough and will result in moving
to resolve this, I am using
in this case, An example of using this was merged for stable/mongodb-replicaset chart with values.yaml file and _helper.tpl function, Do you think this can be a possible solution for this issue? |
Please use helmfile to handle management of multiple releases in separate namespaces. Chart dependencies are all rendered and deployed in the same namespace as the release. Supporting this would result in a massive undertaking of Helm's architecture, and is a use case that is already solved by another tool in the community ecosystem. |
@bacongobbler Please say which tool that is. |
Helmfile does not support atomic deployment of all charts. (1 chart deployment failed = rollback all other). Helm seem to support that with dependencies deployment, but we can't set namespace for particular dependency. Would love to see this reopened, because if you want to deploy particular version of ingress controller, database, vault and your backend, you need to add parameters to all charts to get namespace from values. |
I believe you would have better luck talking with helm chart authors, they can get the NamespaceOverride value that is used when defined. |
@yanchenko-igor Thanks for chipping in. @bacongobbler Using another tool is added complexity and Helmfile definition files, hence Helm itself is a perfect tool for that job. Current lack this feature limits user's ability to reuse existing charts as dependencies. |
…hing has changed except added a values file, everything works as it worked before. This gets around a problem within helm discussed here helm/helm#5358
This is a feature request, related to #2813 .
I have this use case with strong operational constraints (integration with terraform on one side, and with gitlab on the other side), where I would like to be able to specify namespaces of subcharts, for example by using a
values.yaml
like this:I tried it at first, not doubting that this would work, as I expected this behaviour. But I was surprised to see that it does not work, even though it "feels helm idiomatic".
I also believe that it would not be much effort to implement, but I might be mistaken!
The text was updated successfully, but these errors were encountered: