diff options
author | Alexandru Scvortov <code@scvalex.net> | 2021-07-27 16:11:32 +0100 |
---|---|---|
committer | Alexandru Scvortov <code@scvalex.net> | 2021-07-28 11:27:22 +0100 |
commit | b9acd426df4b1ae98da24f1a973968f83f5dcb19 (patch) | |
tree | 8af13219bae34e4f5f9843b89e39ab1c048458e1 /pkgs/applications/networking/cluster/kubernetes | |
parent | 52168faa5b189ef26bd8d0dff9a226a4618dd4e9 (diff) |
kubernetes: add passthru tests
Also defensively quote a path and reformat a comment to trigger the right review.
Diffstat (limited to 'pkgs/applications/networking/cluster/kubernetes')
-rw-r--r-- | pkgs/applications/networking/cluster/kubernetes/default.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/applications/networking/cluster/kubernetes/default.nix b/pkgs/applications/networking/cluster/kubernetes/default.nix index 2a66b391ae8a5..ac1e0aa911715 100644 --- a/pkgs/applications/networking/cluster/kubernetes/default.nix +++ b/pkgs/applications/networking/cluster/kubernetes/default.nix @@ -7,6 +7,7 @@ , makeWrapper , rsync , installShellFiles +, nixosTests , components ? [ "cmd/kubelet" @@ -66,8 +67,8 @@ stdenv.mkDerivation rec { install -D build/pause/linux/pause -t $pause/bin installManPage docs/man/man1/*.[1-9] - # Unfortunately, kube-addons-main.sh only looks for the lib file in either the current working dir - # or in /opt. We have to patch this for now. + # Unfortunately, kube-addons-main.sh only looks for the lib file in either the + # current working dir or in /opt. We have to patch this for now. substitute cluster/addons/addon-manager/kube-addons-main.sh $out/bin/kube-addons \ --subst-var out @@ -95,4 +96,11 @@ stdenv.mkDerivation rec { maintainers = with maintainers; [ johanot offline saschagrunert ]; platforms = platforms.unix; }; + + passthru.tests = with nixosTests.kubernetes; { + dns-single-node = dns.singlenode; + dns-multi-node = dns.multinode; + rbac-single-node = rbac.singlenode; + rbac-multi-node = rbac.multinode; + }; } |