mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-13 00:20:07 +01:00
- 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
48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
{ pkgs ? import <nixpkgs> {}
|
|
, lib ? pkgs.lib
|
|
, kubenix ? import ../. { inherit pkgs lib; }
|
|
, k8sVersion ? "1.13"
|
|
|
|
# whether any testing error should throw an error
|
|
, throwError ? true
|
|
, e2e ? true }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
images = pkgs.callPackage ./images.nix {};
|
|
|
|
test = (kubenix.evalModules {
|
|
modules = [
|
|
kubenix.modules.testing
|
|
|
|
{
|
|
testing.throwError = throwError;
|
|
testing.e2e = e2e;
|
|
testing.tests = [
|
|
./k8s/simple.nix
|
|
./k8s/deployment.nix
|
|
./k8s/crd.nix
|
|
./k8s/1.13/crd.nix
|
|
./k8s/defaults.nix
|
|
./k8s/order.nix
|
|
./k8s/submodule.nix
|
|
./helm/simple.nix
|
|
./istio/bookinfo.nix
|
|
./submodules/simple.nix
|
|
./submodules/defaults.nix
|
|
./submodules/versioning.nix
|
|
];
|
|
testing.args = {
|
|
inherit images k8sVersion;
|
|
};
|
|
}
|
|
];
|
|
args = {
|
|
inherit pkgs;
|
|
};
|
|
specialArgs = {
|
|
inherit kubenix;
|
|
};
|
|
}).config;
|
|
in test.testing
|