mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
rm: legacy support for buildResources
This commit is contained in:
parent
bf64929797
commit
caafa96bd3
1 changed files with 1 additions and 24 deletions
25
default.nix
25
default.nix
|
|
@ -38,31 +38,8 @@ let
|
||||||
|
|
||||||
modules = import ./modules;
|
modules = import ./modules;
|
||||||
|
|
||||||
# legacy support for buildResources
|
|
||||||
buildResources =
|
|
||||||
{ configuration ? { }
|
|
||||||
, writeJSON ? true
|
|
||||||
, writeHash ? true
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
evaled = evalModules {
|
|
||||||
modules = [
|
|
||||||
configuration
|
|
||||||
modules.legacy
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
generated = evaled.config.kubernetes.generated;
|
|
||||||
|
|
||||||
result =
|
|
||||||
if writeJSON
|
|
||||||
then pkgs.writeText "resources.json" (builtins.toJSON generated)
|
|
||||||
else generated;
|
|
||||||
in
|
|
||||||
result;
|
|
||||||
|
|
||||||
kubenix = {
|
kubenix = {
|
||||||
inherit evalModules buildResources modules;
|
inherit evalModules modules;
|
||||||
|
|
||||||
lib = kubenixLib;
|
lib = kubenixLib;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue