mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-11 23:50:06 +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;
|
||||
|
||||
rec {
|
||||
mkSecretOption = {description ? "", default ? {}}: mkOption ({
|
||||
mkSecretOption = {description ? "", default ? {}, allowNull ? true}: mkOption {
|
||||
inherit description;
|
||||
type = types.nullOr (types.submodule {
|
||||
type = (if allowNull then types.nullOr else id) (types.submodule {
|
||||
options = {
|
||||
name = mkOption {
|
||||
description = "Name of the secret where secret is stored";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue