Unverified Commit 727809f5 authored by Morgan Jones's avatar Morgan Jones
Browse files

nixos/k3s: get tests working again

Some of the attributes fetched throw, so tryEval them. Recurse into the
attribute set to pick up all the tests.
parent e067fb89
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -4,9 +4,11 @@
  lib ? pkgs.lib,
}:
let
  allK3s = lib.filterAttrs (n: _: lib.strings.hasPrefix "k3s_" n) pkgs;
  allK3s = lib.filterAttrs (
    n: _: lib.strings.hasPrefix "k3s_" n && (builtins.tryEval pkgs.${n}).success
  ) pkgs;
in
{
lib.recurseIntoAttrs {
  airgap-images = lib.mapAttrs (
    _: k3s: import ./airgap-images.nix { inherit system pkgs k3s; }
  ) allK3s;