5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
22 lines
694 B
Nix
22 lines
694 B
Nix
{
|
|
system ? builtins.currentSystem,
|
|
pkgs ? import ../../.. { inherit system; },
|
|
lib ? pkgs.lib,
|
|
}:
|
|
let
|
|
allK3s = lib.filterAttrs (n: _: lib.strings.hasPrefix "k3s_" n) pkgs;
|
|
in
|
|
{
|
|
# Testing K3s with Etcd backend
|
|
etcd = lib.mapAttrs (
|
|
_: k3s:
|
|
import ./etcd.nix {
|
|
inherit system pkgs k3s;
|
|
inherit (pkgs) etcd;
|
|
}
|
|
) allK3s;
|
|
# Run a single node k3s cluster and verify a pod can run
|
|
single-node = lib.mapAttrs (_: k3s: import ./single-node.nix { inherit system pkgs k3s; }) allK3s;
|
|
# Run a multi-node k3s cluster and verify pod networking works across nodes
|
|
multi-node = lib.mapAttrs (_: k3s: import ./multi-node.nix { inherit system pkgs k3s; }) allK3s;
|
|
}
|