Do not import kubernets node labels from nixos-servers

This commit is contained in:
Pim Kunis 2024-11-04 23:16:51 +01:00
parent e18f3c7caa
commit 7be57d26f0
4 changed files with 157 additions and 23 deletions

View file

@ -4,7 +4,6 @@
nixhelm,
system,
globals,
machines,
...
}: {
options.bootstrap-default.enable = lib.mkEnableOption "bootstrap-default";
@ -65,14 +64,12 @@
ntfy = {};
};
nodes = let
machinesWithKubernetesLabels = lib.filterAttrs (name: machine: machine.kubernetesNodeLabels != null) machines;
in
nodes =
builtins.mapAttrs
(name: machine: {
metadata.labels = machine.kubernetesNodeLabels;
(name: labels: {
metadata.labels = labels;
})
machinesWithKubernetesLabels;
globals.nodeLabels;
recurringJobs.backup-nfs.spec = {
cron = "0 1 * * *"; # One o'clock at night