mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
feat(testing): set default kubenix.project to test name
This commit is contained in:
parent
6183fcc190
commit
bc344c7992
2 changed files with 8 additions and 7 deletions
|
|
@ -107,11 +107,14 @@ let
|
|||
'';
|
||||
};
|
||||
|
||||
testOptions = {config, ...}: let
|
||||
modules = [config.module ./test.nix {
|
||||
config._module.args = {
|
||||
test = config;
|
||||
} // cfg.args;
|
||||
testOptions = { config, ... }: let
|
||||
modules = [config.module ./test.nix ./base.nix {
|
||||
config = {
|
||||
kubenix.project = mkDefault config.name;
|
||||
_module.args = {
|
||||
test = config;
|
||||
} // cfg.args;
|
||||
};
|
||||
}] ++ cfg.defaults;
|
||||
|
||||
test = (kubenix.evalModules {
|
||||
|
|
|
|||
|
|
@ -19,8 +19,6 @@ in {
|
|||
}];
|
||||
};
|
||||
|
||||
kubenix.project = "test-release";
|
||||
|
||||
kubernetes.namespace = "test-namespace";
|
||||
|
||||
submodules.imports = [{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue