about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorJairo Llopis <yajo.sk8@gmail.com>2023-02-14 13:23:35 +0000
committerJairo Llopis <yajo.sk8@gmail.com>2023-02-14 13:23:35 +0000
commit0ca947e125c56e01d2b0471eaebb60902a2c412a (patch)
treed028724fe71dede30562ff30d4dcd22362a707f4 /nixos/tests
parentf0a6595fe5bebfa033c0fc1fc91d85d5f5f5c2cd (diff)
k3s: dynamic detection of all k3s packages
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/k3s/default.nix10
1 files changed, 1 insertions, 9 deletions
diff --git a/nixos/tests/k3s/default.nix b/nixos/tests/k3s/default.nix
index 453a96439d8d9..e168f8233c763 100644
--- a/nixos/tests/k3s/default.nix
+++ b/nixos/tests/k3s/default.nix
@@ -3,15 +3,7 @@
 , lib ? pkgs.lib
 }:
 let
-  allK3s = {
-    inherit (pkgs)
-      k3s
-      k3s_1_23
-      k3s_1_24
-      k3s_1_25
-      k3s_1_26
-      ;
-  };
+  allK3s = lib.filterAttrs (n: _: lib.strings.hasPrefix "k3s_" n) pkgs;
 in
 {
   # Run a single node k3s cluster and verify a pod can run