Don't construct test resources YAML files with .txt in the filename

This commit is contained in:
Ben Banfield-Zanin committed 2026-04-07 16:37:50 +01:00
1 parent 17ee182d9d
commit ac042cfcba
2 files changed
+6 -3

No files matched your search

+1
View File
@@ -0,0 +1 @@
CI: output the YAML of resources into `.yaml` files rather than `.txt.yaml` files.
+5 -3
View File
@@ -92,10 +92,12 @@ def collect_ess_logs():
# Get resources
for resource in resources:
output_file = f"{destination}/{ns}/{resource}.txt"
run_command_to_file(f"kubectl --context=k3d-ess-helm get {resource} -n {ns}", output_file)
output_file_prefix = f"{destination}/{ns}/{resource}"
run_command_to_file(
f"kubectl --context=k3d-ess-helm get {resource} -o yaml -n {ns}", f"{output_file}.yaml"
f"kubectl --context=k3d-ess-helm get {resource} -n {ns}", f"{output_file_prefix}.txt"
)
run_command_to_file(
f"kubectl --context=k3d-ess-helm get {resource} -o yaml -n {ns}", f"{output_file_prefix}.yaml"
)
# Get events