Add extraConfig option

This commit is contained in:
Jonas Juselius
2020-12-02 11:26:54 +01:00
parent ecac0afc10
commit 4d41d2d03e

View File

@@ -1,4 +1,4 @@
{ pkgs, cluster, customize ? {}, lib, config, ... }:
{ pkgs, cluster, customize ? {}, extraConfig ? {}, lib, config, ... }:
with lib;
let
cfg = cluster;
@@ -43,7 +43,7 @@ in {
services.kubernetes.kubelet.extraSANs = mkSANs host;
imports = [ host.hw ./modules.nix ../overrides/kubelet.nix ];
imports = [ host.hw extraConfig ./modules.nix ../overrides/kubelet.nix ];
};
node = host: self: {
@@ -62,7 +62,7 @@ in {
services.kubernetes.kubelet.extraSANs = mkSANs host;
imports = [ host.hw ./modules.nix ../overrides/kubelet.nix ];
imports = [ host.hw extraConfig ./modules.nix ../overrides/kubelet.nix ];
};
mkDeployment = top:
@@ -92,7 +92,7 @@ in {
}
];
imports = [ host.hw ./modules.nix ];
imports = [ host.hw extraConfig ./modules.nix ];
};
mkDeployment = top: nodes:
@@ -117,7 +117,7 @@ in {
}
];
imports = [ host.hw ./modules.nix ];
imports = [ host.hw extraConfig ./modules.nix ];
};
mkDeployment = top: nodes: