From c4dad2b2a40be6261d4a117d5ed769c8c0863cbf Mon Sep 17 00:00:00 2001 From: Robert Rose Date: Mon, 11 Nov 2024 17:00:40 +0100 Subject: [PATCH] nixos/k3s: use same k3s package in multi-node test The test previously violated the Kubernetes version skew policy by deploying a kubelet of hte most recent version in a cluster with an older apiserver. (cherry picked from commit 2a79402b1e5be29cf2548229911ad3bdf1aa982d) --- nixos/tests/k3s/multi-node.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/tests/k3s/multi-node.nix b/nixos/tests/k3s/multi-node.nix index 58b98b2a18532..ff9774b15f152 100644 --- a/nixos/tests/k3s/multi-node.nix +++ b/nixos/tests/k3s/multi-node.nix @@ -116,6 +116,7 @@ import ../make-test-python.nix ( services.k3s = { inherit tokenFile; enable = true; + package = k3s; serverAddr = "https://192.168.1.1:6443"; clusterInit = false; extraFlags = builtins.toString [ @@ -161,6 +162,7 @@ import ../make-test-python.nix ( inherit tokenFile; enable = true; role = "agent"; + package = k3s; serverAddr = "https://192.168.1.3:6443"; extraFlags = lib.concatStringsSep " " [ "--pause-image"