Do not import kubernets node labels from nixos-servers
This commit is contained in:
parent
e18f3c7caa
commit
7be57d26f0
4 changed files with 157 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue