mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
feat: deprecate mkValueOrSecretOption with mkSecretOption
This commit is contained in:
parent
1db416b1e1
commit
5179a8d0a7
4 changed files with 35 additions and 28 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
kubernetes.version = "1.7";
|
||||
kubernetes.version = "1.9";
|
||||
|
||||
require = [./modules.nix ./deployment.nix];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,9 +13,12 @@ with lib;
|
|||
default = 80;
|
||||
};
|
||||
|
||||
password = mkValueOrSecretOption {
|
||||
password = mkSecretOption {
|
||||
description = "Nginx simple auth credentials";
|
||||
default.secret = "test";
|
||||
default = {
|
||||
name = "test";
|
||||
key = "password";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -47,7 +50,10 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
kubernetes.modules.app-v1.module = "nginx";
|
||||
kubernetes.modules.app-v1 = {
|
||||
module = "nginx";
|
||||
configuration.password.name = "test2";
|
||||
};
|
||||
kubernetes.modules.app-v2 = {
|
||||
module = "nginx";
|
||||
configuration.port = 8080;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue