initial commit
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
This commit is contained in:
commit
0078a09395
10 changed files with 1859 additions and 0 deletions
10
lib/generators/helm.nix
Normal file
10
lib/generators/helm.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
_: pkgs: content:
|
||||
pkgs.runCommand "helm-${content.name}" {} ''
|
||||
mkdir -p $out/helm/${content.name}/templates
|
||||
cp ${(pkgs.formats.yaml {}).generate "Chart.yaml" {
|
||||
apiVersion = "v2";
|
||||
name = content.name;
|
||||
version = content.version or "0.1.0";
|
||||
}} $out/helm/${content.name}/Chart.yaml
|
||||
cp ${(pkgs.formats.yaml {}).generate "values.yaml" (content.values or {})} $out/helm/${content.name}/values.yaml
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue