mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
56 lines
1.4 KiB
Nix
56 lines
1.4 KiB
Nix
{
|
|
system ? builtins.currentSystem,
|
|
evalModules ? (import ../. {}).evalModules.${system},
|
|
}: {
|
|
k8sVersion ? "1.23",
|
|
registry ? throw "Registry url not defined",
|
|
doThrowError ? true, # whether any testing error should throw an error
|
|
enabledTests ? null,
|
|
}: let
|
|
inherit
|
|
((evalModules {
|
|
module = {
|
|
kubenix,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
imports = [kubenix.modules.testing];
|
|
|
|
testing = {
|
|
inherit doThrowError enabledTests;
|
|
name = "kubenix-${k8sVersion}";
|
|
tests = [
|
|
./k8s/simple.nix
|
|
./k8s/deployment.nix
|
|
./k8s/crd.nix # flaky
|
|
./k8s/defaults.nix
|
|
./k8s/order.nix
|
|
./k8s/submodule.nix
|
|
./k8s/imports.nix
|
|
#./helm/simple.nix
|
|
./istio/bookinfo.nix
|
|
./submodules/simple.nix
|
|
./submodules/defaults.nix
|
|
./submodules/versioning.nix
|
|
./submodules/exports.nix
|
|
./submodules/passthru.nix
|
|
];
|
|
|
|
args = {images = pkgs.callPackage ./images.nix {};};
|
|
docker.registryUrl = registry;
|
|
|
|
common = [
|
|
{
|
|
features = ["k8s"];
|
|
options = {
|
|
kubernetes.version = k8sVersion;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}))
|
|
config
|
|
;
|
|
in
|
|
config.testing // {recurseForDerivations = true;}
|