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
|
|
@ -308,7 +308,7 @@ let
|
|||
|
||||
defaultOptions = mapAttrs (name: value: mkOption {
|
||||
description = "Kubernetes defaults for ${name} resources";
|
||||
type = types.coercedTo types.attrs (value: [value]) (types.listOf types.attrs);
|
||||
type = types.coercedTo types.unspecified (value: [value]) (types.listOf types.unspecified);
|
||||
default = [];
|
||||
}) (
|
||||
(versionOptions.${config.kubernetes.version}.kubernetesResourceOptions) //
|
||||
|
|
@ -334,7 +334,7 @@ in {
|
|||
options = defaultOptions // {
|
||||
all = mkOption {
|
||||
description = "Kubernetes defaults for all resources";
|
||||
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