Hacker News new | ask | show | jobs
by imglorp 924 days ago
Found the workaround confession thread.

Because you effectively CAN'T dynamically configure subcharts with templating that's done in your main chart, see eg https://github.com/helm/helm/pull/6876 here comes the hack.

We run helm in helm. The top chart runs post-install and post-upgrade hook job which runs helm in a pod with a lot of permissions. The outer helm creates values override yaml for the subchart into a ConfigMap, using liberal templating, which gets mounted in the helm runner pod. Then helm runs in there with the custom values and does its own thing.

Not proud but it lets us do a lot of dynamic things straight helm can't.

1 comments

Have you considered https://github.com/helmfile/helmfile ? What you described sounds a lot like what Helmfile does, but more terrifying.
Yes the hack is gross and yes I would love to use Helmfile. But our use case is to fit into customers' helm processes, eg ArgoCD et al.