mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
feat(defaults): add support for functions
This commit is contained in:
parent
536f447530
commit
bd36e010d0
3 changed files with 9 additions and 9 deletions
|
|
@ -76,7 +76,7 @@ let
|
|||
|
||||
defaultModuleConfigurationOptions = mapAttrs (name: moduleDefinition: mkOption {
|
||||
description = "Module default configuration for ${name} module";
|
||||
type = types.coercedTo types.attrs (value: [value]) (types.listOf types.attrs);
|
||||
type = types.coercedTo types.unspecified (value: [value]) (types.listOf types.unspecified);
|
||||
default = [];
|
||||
}) config.kubernetes.moduleDefinitions;
|
||||
in {
|
||||
|
|
@ -104,7 +104,7 @@ in {
|
|||
options = defaultModuleConfigurationOptions // {
|
||||
all = mkOption {
|
||||
description = "Module default configuration for all modules";
|
||||
type = types.coercedTo types.attrs (value: [value]) (types.listOf types.attrs);
|
||||
type = types.coercedTo types.unspecified (value: [value]) (types.listOf types.unspecified);
|
||||
default = [];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue