k3s: dynamic detection of all k3s packages

This commit is contained in:
Jairo Llopis 2023-02-14 13:23:35 +00:00
parent f0a6595fe5
commit 0ca947e125
No known key found for this signature in database
GPG Key ID: E47E3BE44B940490

View File

@ -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