mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
feat: refactor testing
This commit is contained in:
parent
937ce15748
commit
9bc2406ff2
7 changed files with 158 additions and 163 deletions
|
|
@ -10,6 +10,8 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
images = pkgs.callPackage ./images.nix {};
|
||||
|
||||
tests = listToAttrs (map (version: let
|
||||
version' = replaceStrings ["."] ["_"] version;
|
||||
in nameValuePair "v${version'}" (evalModules {
|
||||
|
|
@ -28,11 +30,13 @@ let
|
|||
./k8s/deployment.nix
|
||||
./k8s/crd.nix
|
||||
./k8s/1.13/crd.nix
|
||||
./k8s/submodule.nix
|
||||
./submodules/simple.nix
|
||||
];
|
||||
testing.defaults = ({kubenix, ...}: {
|
||||
imports = [kubenix.k8s];
|
||||
kubernetes.version = version;
|
||||
_module.args.images = images;
|
||||
});
|
||||
}
|
||||
];
|
||||
|
|
@ -43,7 +47,4 @@ let
|
|||
inherit kubenix;
|
||||
};
|
||||
}).config) k8sVersions);
|
||||
in {
|
||||
inherit tests;
|
||||
results = mapAttrs (_: test: test.testing.result) tests;
|
||||
}
|
||||
in tests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue