kube-parts/lib/generators/helmfile.nix
s0me1newithhand7s 0078a09395 initial commit
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
2026-03-29 04:20:33 +03:00

8 lines
287 B
Nix

_: pkgs: content:
pkgs.runCommand "helmfile" {} ''
mkdir -p $out/helmfile
cp ${(pkgs.formats.yaml {}).generate "helmfile.yaml" {
repositories = content.repositories or [];
releases = map (r: r // {chart = "${r.chart}";}) content.releases;
}} $out/helmfile/helmfile.yaml
''