mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
feat(lib/k8s): add allowNull to mkSecretOption
This commit is contained in:
parent
ba26ce8e60
commit
dc200f8484
1 changed files with 2 additions and 2 deletions
|
|
@ -3,9 +3,9 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
mkSecretOption = {description ? "", default ? {}}: mkOption ({
|
mkSecretOption = {description ? "", default ? {}, allowNull ? true}: mkOption {
|
||||||
inherit description;
|
inherit description;
|
||||||
type = types.nullOr (types.submodule {
|
type = (if allowNull then types.nullOr else id) (types.submodule {
|
||||||
options = {
|
options = {
|
||||||
name = mkOption {
|
name = mkOption {
|
||||||
description = "Name of the secret where secret is stored";
|
description = "Name of the secret where secret is stored";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue