mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-12 01:42:02 +01:00
8e492c9450
Signed-off-by: magic_rb <magic_rb@redalder.org>
25 lines
442 B
Nix
25 lines
442 B
Nix
{
|
|
fetchFromGitHub,
|
|
runCommandNoCC,
|
|
kubernetes-helm,
|
|
formats,
|
|
lib,
|
|
istioctl,
|
|
}: {
|
|
helmChart,
|
|
values ? {},
|
|
name,
|
|
attrs ? {},
|
|
namespace ? "default",
|
|
}: let
|
|
inherit
|
|
(lib)
|
|
getExe'
|
|
;
|
|
in
|
|
runCommandNoCC (name + ".yaml") attrs ''
|
|
${getExe' kubernetes-helm "helm"} template \
|
|
--namespace ${namespace} \
|
|
-f ${(formats.json {}).generate "values.yaml" values} \
|
|
${name} ${helmChart} > $out
|
|
''
|