From 5b918c8e92724d43fefaa57d4c9db70e461b1a72 Mon Sep 17 00:00:00 2001 From: Robert Rose Date: Wed, 3 Sep 2025 22:14:15 +0200 Subject: [PATCH] nixos/k3s: cover bundled traefik deployment in auto deploy charts test --- nixos/tests/k3s/auto-deploy-charts.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nixos/tests/k3s/auto-deploy-charts.nix b/nixos/tests/k3s/auto-deploy-charts.nix index e06dbf05051f..fe4c8ca4690d 100644 --- a/nixos/tests/k3s/auto-deploy-charts.nix +++ b/nixos/tests/k3s/auto-deploy-charts.nix @@ -1,4 +1,5 @@ -# Tests whether container images are imported and auto deploying Helm charts work +# Tests whether container images are imported and auto deploying Helm charts, +# including the bundled traefik, work import ../make-test-python.nix ( { k3s, @@ -64,7 +65,6 @@ import ../make-test-python.nix ( "--disable local-storage" "--disable metrics-server" "--disable servicelb" - "--disable traefik" ]; images = [ # Provides the k3s Helm controller @@ -148,6 +148,8 @@ import ../make-test-python.nix ( assert hello_output.rstrip() == "Hello, world!", f"unexpected output of hello job: {hello_output}" assert values_file_output.rstrip() == "Hello, file!", f"unexpected output of values file job: {values_file_output}" assert advanced_output.rstrip() == "advanced hello", f"unexpected output of advanced job: {advanced_output}" + # wait for bundled traefik deployment + machine.wait_until_succeeds("kubectl -n kube-system rollout status deployment traefik", timeout=180) ''; } )