mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 05:29:20 +03:00
k3s/nixos/tests: move comments to test (clean-up)
This commit is contained in:
parent
4e7b26b9d4
commit
b298bbfce0
5 changed files with 4 additions and 4 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
# Tests whether container images are imported and auto deploying manifests work
|
||||||
import ../make-test-python.nix (
|
import ../make-test-python.nix (
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
|
|
@ -7,9 +7,7 @@ let
|
||||||
allK3s = lib.filterAttrs (n: _: lib.strings.hasPrefix "k3s_" n) pkgs;
|
allK3s = lib.filterAttrs (n: _: lib.strings.hasPrefix "k3s_" n) pkgs;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Test whether container images are imported and auto deploying manifests work
|
|
||||||
auto-deploy = lib.mapAttrs (_: k3s: import ./auto-deploy.nix { inherit system pkgs k3s; }) allK3s;
|
auto-deploy = lib.mapAttrs (_: k3s: import ./auto-deploy.nix { inherit system pkgs k3s; }) allK3s;
|
||||||
# Testing K3s with Etcd backend
|
|
||||||
etcd = lib.mapAttrs (
|
etcd = lib.mapAttrs (
|
||||||
_: k3s:
|
_: k3s:
|
||||||
import ./etcd.nix {
|
import ./etcd.nix {
|
||||||
|
@ -17,8 +15,6 @@ in
|
||||||
inherit (pkgs) etcd;
|
inherit (pkgs) etcd;
|
||||||
}
|
}
|
||||||
) allK3s;
|
) 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;
|
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;
|
multi-node = lib.mapAttrs (_: k3s: import ./multi-node.nix { inherit system pkgs k3s; }) allK3s;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Tests K3s with Etcd backend
|
||||||
import ../make-test-python.nix (
|
import ../make-test-python.nix (
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# A test that runs a multi-node k3s cluster and verify pod networking works across nodes
|
||||||
import ../make-test-python.nix (
|
import ../make-test-python.nix (
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# A test that runs a single node k3s cluster and verify a pod can run
|
||||||
import ../make-test-python.nix (
|
import ../make-test-python.nix (
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue