dotfiles/terranix/prepare/kubernetes.nix
magic_rb 03b54bd52b
Use helm2nix2terraform to create nix files from helm charts
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-04-07 13:24:08 +02:00

23 lines
451 B
Nix

{
inputs,
pkgs,
paths,
...
}: {
resource."kubernetes_namespace"."example" = {
metadata = {
name = "metallb-system";
};
};
module."kubernetes" = {
source =
inputs.uk3s-nix.legacyPackages.${pkgs.stdenv.system}.helm2nix2terraform
"base"
"${paths.root}/terranix/prepare/kubernetes"
{
predicate = chart: name: manifest:
manifest.kind == "CustomResourceDefinition";
};
};
}