@@ -7,6 +7,7 @@
77, makeWrapper
88, rsync
99, installShellFiles
10+, nixosTests
1011
1112, components ? [
1213 "cmd/kubelet"
@@ -66,8 +67,8 @@ stdenv.mkDerivation rec {
6667 install -D build/pause/linux/pause -t $pause/bin
6768 installManPage docs/man/man1/*.[1-9]
6869
69− # Unfortunately, kube-addons-main.sh only looks for the lib file in either the current working dir
70− # or in /opt. We have to patch this for now.
70+ # Unfortunately, kube-addons-main.sh only looks for the lib file in either the
71+ # current working dir or in /opt. We have to patch this for now.
7172 substitute cluster/addons/addon-manager/kube-addons-main.sh $out/bin/kube-addons \
7273 --subst-var out
7374
@@ -95,4 +96,11 @@ stdenv.mkDerivation rec {
9596 maintainers = with maintainers; [ johanot offline saschagrunert ];
9697 platforms = platforms.unix;
9798 };
99+
100+ passthru.tests = with nixosTests.kubernetes; {
101+ dns-single-node = dns.singlenode;
102+ dns-multi-node = dns.multinode;
103+ rbac-single-node = rbac.singlenode;
104+ rbac-multi-node = rbac.multinode;
105+ };
98106}