fix(k8s): support control-plane tests on slim runner
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 2s
Test Kubernetes backup scripts / test-automated-nfs-backup (push) Successful in 2s
Test Kubernetes backup scripts / test-k3s-control-plane-config-backup (push) Successful in 3s

This commit is contained in:
2026-07-21 18:13:42 -03:00
parent 260b0196f5
commit 26984db5a6
4 changed files with 46 additions and 2 deletions

View File

@@ -238,6 +238,10 @@ add_archive_entry_if_present() {
local relative_path
local protected_path
if [[ "$absolute_path" =~ (^|/)(\.|\.\.)(/|$) ]]; then
die "Configured source path is not safe to archive"
fi
if [[ ! -e "$absolute_path" && ! -L "$absolute_path" ]]; then
return 0
fi