-
Notifications
You must be signed in to change notification settings - Fork 565
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
Support for multiple charts in single release (similar to alias in helm) #876
Comments
@imdhruva Hey! I'm still trying to understand. What would be benefits of that over just creating separate releases for Also in your example you seem to have missed a primary Or did you imply that the primary chart can be an empty one with |
sorry for the confusion and many thanks for the prompt response.
we want every application to be a single release for easier management from helm. For example if in the deployment pipeline the release fail we can directly call
Long answer short : Parent chart does not do any templating it is only is only used to for calling multiple instances of subchart1 and subchart2 (it does declare some default values but helmfile is strong enough to make us address that in helmfile itself). Detail: currently we are packaging the application into one release. So for example one application has different components each of which correspond to different charts we just need a capability to say Release X needs x number of component1 and y number of component2. To be more specific every application is packaged into an
we call multiple instances of |
This is the GA version of the helm-x integration #673 developed last year. You get all the following benefits without an extra helm plugin: - Ability to add ad-hoc chart dependencies/aliases, without forking the chart (Fixes #876 ) - Ability to patch resulting K8s resources before installing the helm chart - Ability to install a kustomization as a chart (Requires `kustomize` binary to be available in `$PATH` - Ability to install a directory of K8s manifests as a chart - etc.
Currently we map single release in helmfile by using helm sub charts i.e.
where a chart refers to a subchart multiple times by using aliases in
requirements.yaml
. We then manage the deployment of chart1 by mapping it to a release in helmfile.While this pattern works it is very difficult to iterate over this pattern. Figure this scenario:
An ideal solution would be to flatten the structure and have no subchart and let helmfile manage the alias declaration. Effectively in helmfile release we call something like:
--app.yaml.gotmpl
It would be very convenient to have a feature similar to helm
alias
in helmfile so we can call multiple instances of a single chart.The text was updated successfully, but these errors were encountered: