mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-13 08:30: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
|
|
@ -108,10 +108,13 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
testOptions = { config, ... }: let
|
testOptions = { config, ... }: let
|
||||||
modules = [config.module ./test.nix {
|
modules = [config.module ./test.nix ./base.nix {
|
||||||
config._module.args = {
|
config = {
|
||||||
|
kubenix.project = mkDefault config.name;
|
||||||
|
_module.args = {
|
||||||
test = config;
|
test = config;
|
||||||
} // cfg.args;
|
} // cfg.args;
|
||||||
|
};
|
||||||
}] ++ cfg.defaults;
|
}] ++ cfg.defaults;
|
||||||
|
|
||||||
test = (kubenix.evalModules {
|
test = (kubenix.evalModules {
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,6 @@ in {
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
kubenix.project = "test-release";
|
|
||||||
|
|
||||||
kubernetes.namespace = "test-namespace";
|
kubernetes.namespace = "test-namespace";
|
||||||
|
|
||||||
submodules.imports = [{
|
submodules.imports = [{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue