mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
fix(k8s/lib): fix mkSecretOption defaults
This commit is contained in:
parent
1b32ca7bbd
commit
59691c6ea9
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
k8s = {
|
k8s = {
|
||||||
mkSecretOption = {description ? "", default ? {}}: mkOption {
|
mkSecretOption = {description ? "", default ? null}: mkOption {
|
||||||
inherit description;
|
inherit description;
|
||||||
type = types.nullOr (types.submodule {
|
type = types.nullOr (types.submodule {
|
||||||
options = {
|
options = {
|
||||||
|
|
@ -19,7 +19,7 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkDefault default;
|
config = mkDefault (if default == null then {} else default);
|
||||||
});
|
});
|
||||||
default = {};
|
default = {};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue