dotfiles/terranix/prepare/kubernetes.nix
magic_rb 41a4b0e160
Correctly create k8s namespaces
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-04-07 14:02:29 +02:00

29 lines
570 B
Nix

{
inputs,
pkgs,
paths,
...
}: {
resource."kubernetes_namespace"."metallb-system" = {
metadata = {
name = "metallb-system";
};
};
resource."kubernetes_namespace"."istio-system" = {
metadata = {
name = "istio-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";
};
};
}