CI: enable unsafe_show_logs == true by default (#12702)

* CI: enable unsafe_show_logs == true by default

* Deduplicate defaults vars (unsafe_show_logs)
This commit is contained in:
Max Gautier
2025-11-20 07:10:00 +00:00
committed by GitHub
parent bce107ce3d
commit 9d06ce1a8d
4 changed files with 3 additions and 16 deletions

View File

@@ -5,7 +5,9 @@ download_cache_dir: /tmp/kubespray_cache
# If this is true, debug information will be displayed but
# may contain some private data, so it is recommended to set it to false
# in the production environment.
unsafe_show_logs: false
# false by default, unless we're running in CI. (CI_PROJECT_URL should be globally unique even if kubespray happens to run
# in gitlab-ci in other contexts
unsafe_show_logs: "{{ lookup('env', 'CI_PROJECT_URL') == 'https://gitlab.com/kargo-ci/kubernetes-sigs-kubespray' }}"
# do not delete remote cache files after using them
# NOTE: Setting this parameter to TRUE is only really useful when developing kubespray