mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-13 00:20:07 +01:00
Refactor:
- Support for module features - Remove kubenix.module and rather use explicit modules - Make tests framework independent of k8s module - Remove metacontroller submodule, which will go to kubenix-modules - Improved submodule propagation and passthru - Added additional test for k8s-submodule
This commit is contained in:
parent
b670139906
commit
6183fcc190
30 changed files with 513 additions and 508 deletions
|
|
@ -25,20 +25,30 @@ in {
|
|||
} {
|
||||
message = "Should have submodule name set";
|
||||
assertion = cfg.config.args.name == "instance";
|
||||
} {
|
||||
message = "should have tag set";
|
||||
assertion = elem "tag" (cfg.config.submodule.tags);
|
||||
}];
|
||||
};
|
||||
|
||||
submodules.propagate.enable = true;
|
||||
submodules.imports = [{
|
||||
module = {name, ...}: {
|
||||
config.submodule.name = "submodule";
|
||||
options.args.value = mkOption {
|
||||
description = "Submodule argument";
|
||||
type = types.str;
|
||||
imports = [ kubenix.modules.submodule ];
|
||||
config = {
|
||||
submodule.name = "submodule";
|
||||
submodule.tags = ["tag"];
|
||||
};
|
||||
options.args.name = mkOption {
|
||||
description = "Submodule name";
|
||||
type = types.str;
|
||||
default = name;
|
||||
options = {
|
||||
args.value = mkOption {
|
||||
description = "Submodule argument";
|
||||
type = types.str;
|
||||
};
|
||||
args.name = mkOption {
|
||||
description = "Submodule name";
|
||||
type = types.str;
|
||||
default = name;
|
||||
};
|
||||
};
|
||||
};
|
||||
}];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue