2022-08-12 12:06:08 +00:00
|
|
|
{ system ? builtins.currentSystem
|
|
|
|
, pkgs ? import ../../.. { inherit system; }
|
2023-02-16 17:41:37 +00:00
|
|
|
, lib ? pkgs.lib
|
2022-08-12 12:06:08 +00:00
|
|
|
}:
|
2023-02-16 17:41:37 +00:00
|
|
|
let
|
|
|
|
allK3s = lib.filterAttrs (n: _: lib.strings.hasPrefix "k3s_" n) pkgs;
|
|
|
|
in
|
2022-08-12 12:06:08 +00:00
|
|
|
{
|
2024-02-29 20:09:43 +00:00
|
|
|
# Testing K3s with Etcd backend
|
|
|
|
etcd = lib.mapAttrs (_: k3s: import ./etcd.nix {
|
|
|
|
inherit system pkgs k3s;
|
|
|
|
inherit (pkgs) etcd;
|
|
|
|
}) allK3s;
|
2022-08-12 12:06:08 +00:00
|
|
|
# Run a single node k3s cluster and verify a pod can run
|
2023-02-16 17:41:37 +00:00
|
|
|
single-node = lib.mapAttrs (_: k3s: import ./single-node.nix { inherit system pkgs k3s; }) allK3s;
|
2022-08-12 12:06:08 +00:00
|
|
|
# Run a multi-node k3s cluster and verify pod networking works across nodes
|
2023-02-16 17:41:37 +00:00
|
|
|
multi-node = lib.mapAttrs (_: k3s: import ./multi-node.nix { inherit system pkgs k3s; }) allK3s;
|
2022-08-12 12:06:08 +00:00
|
|
|
}
|