mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
statix fix
This commit is contained in:
parent
890b84be5e
commit
6a720a257e
27 changed files with 86 additions and 99 deletions
|
|
@ -39,8 +39,8 @@ with lib; let
|
|||
else let coerced = coerceFunc val; in assert finalType.check coerced; coerced;
|
||||
in
|
||||
finalType.merge loc (map (def: def // {value = coerceVal def.value;}) defs);
|
||||
getSubOptions = finalType.getSubOptions;
|
||||
getSubModules = finalType.getSubModules;
|
||||
inherit (finalType) getSubOptions;
|
||||
inherit (finalType) getSubModules;
|
||||
substSubModules = m: coercedTo coercedType coerceFunc (finalType.substSubModules m);
|
||||
typeMerge = _t1: _t2: null;
|
||||
functor = (defaultFunctor name) // {wrapped = finalType;};
|
||||
|
|
@ -62,7 +62,7 @@ with lib; let
|
|||
values);
|
||||
|
||||
submoduleOf = ref:
|
||||
types.submodule ({ ...}: {
|
||||
types.submodule (_: {
|
||||
options = definitions."${ref}".options or {};
|
||||
config = definitions."${ref}".config or {};
|
||||
});
|
||||
|
|
@ -74,7 +74,7 @@ with lib; let
|
|||
then toInt name
|
||||
else name;
|
||||
in {
|
||||
options = definitions."${ref}".options;
|
||||
inherit (definitions."${ref}") options;
|
||||
config =
|
||||
definitions."${ref}".config
|
||||
// {
|
||||
|
|
@ -90,7 +90,7 @@ with lib; let
|
|||
in
|
||||
types.submodule ({name, ...}: {
|
||||
imports = getDefaults resource group version kind;
|
||||
options = definitions."${ref}".options;
|
||||
inherit (definitions."${ref}") options;
|
||||
config = mkMerge [
|
||||
definitions."${ref}".config
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue