nixos/k3s: cover bundled traefik deployment in auto deploy charts test

This commit is contained in:
Robert Rose
2025-09-04 17:19:37 +02:00
parent 75c1cae6e1
commit 5b918c8e92
+4 -2
View File
@@ -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)
'';
}
)