mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
29 lines
560 B
Nix
29 lines
560 B
Nix
|
|
{ lib, config, ... }:
|
||
|
|
|
||
|
|
with lib;
|
||
|
|
|
||
|
|
let
|
||
|
|
cfg = config.kubetest;
|
||
|
|
|
||
|
|
in {
|
||
|
|
options.test.kubetest = {
|
||
|
|
enable = mkOption {
|
||
|
|
description = "Whether to use kubetest test driver";
|
||
|
|
type = types.bool;
|
||
|
|
default = cfg.testScript != "";
|
||
|
|
};
|
||
|
|
|
||
|
|
testScript = mkOption {
|
||
|
|
type = types.lines;
|
||
|
|
description = "Test script to use for kubetest";
|
||
|
|
default = "";
|
||
|
|
};
|
||
|
|
|
||
|
|
extraPackages = mkOption {
|
||
|
|
type = types.listOf types.package;
|
||
|
|
description = "List of extra packages to use for kubetest";
|
||
|
|
default = [];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|