Files
cozystack/hack
Adham Kiwan ffb3b6faf3 test(hack): check hook scripts under files/ for --request-timeout
The guard against a non-zero --request-timeout on in-cluster kubectl
calls only read chart templates. A chart that loads its hook script with
.Files.Get runs it with the same in-cluster credentials, so a flag in
packages/*/*/files/ went through unchecked; a review, not the guard,
caught it in #4915. It also matched only the --request-timeout=<value>
form, while kubectl accepts --request-timeout <value> as well.

Scan shell scripts under files/ too, recognised by a .sh suffix or a
sh/bash shebang, through env or env -S included, and match the
space-separated form and quoted values when a non-zero number follows,
so prose about the flag in comments stays quiet. The new cases run the
scan on a throwaway tree.

Closes: #5304
Assisted-by: LLM
Signed-off-by: Adham Kiwan <adhamkiwan@outlook.com>
2026-11-19 15:12:48 +02:00
..