fix(lib): split k8s functions to separate file

This commit is contained in:
Jaka Hudoklin 2018-01-11 12:10:18 +01:00
parent a6d4373fb2
commit 97826c01e4
3 changed files with 60 additions and 51 deletions

View file

@ -6,7 +6,7 @@ with pkgs.lib;
with import ./lib.nix { inherit pkgs; inherit (pkgs) lib; };
let
evalKubernetesModules = configuration: evalModules {
evalKubernetesModules = configuration: evalModules rec {
modules = [
(import ./kubernetes.nix {})
./modules.nix configuration
@ -14,7 +14,10 @@ let
args = {
inherit pkgs;
name = "default";
k8s = { inherit loadJSON loadYAML toYAML toBase64 octalToDecimal mkSecretOption secretToEnv; };
k8s = import ./k8s.nix {
inherit pkgs;
inherit (pkgs) lib;
};
};
};