Match Kubernetes plan concurrency to apply settings
Homelab Main / validate (push) Waiting to run Details
Homelab Main / running-update (push) Blocked by required conditions Details
Homelab Main / debian-ops (push) Blocked by required conditions Details

This commit is contained in:
juvenal.diaz 2026-10-30 22:55:52 -06:00
parent 46449119af
commit 9aeddb1cd6
1 changed files with 11 additions and 0 deletions

View File

@ -1032,6 +1032,17 @@ run_tofu_plan_stack() {
plan_args+=("-var-file=${LAB_CLUSTER_VAR_FILE}")
fi
# Use the same API concurrency as applies, including standalone refreshes
# of Helm releases. Otherwise plan silently uses OpenTofu's default of 10.
if [[ "${stack}" == "bootstrap/platform" || "${stack}" == "bootstrap/apps" ]]; then
local k8s_tofu_parallelism="${LAB_TOFU_K8S_PARALLELISM:-1}"
if ! [[ "${k8s_tofu_parallelism}" =~ ^[0-9]+$ ]] || ((k8s_tofu_parallelism < 1)); then
echo "LAB_TOFU_K8S_PARALLELISM must be a positive integer." >&2
return 2
fi
plan_args+=("-parallelism=${k8s_tofu_parallelism}")
fi
if [[ "${stack}" == "bootstrap/platform" ]]; then
configure_platform_grafana_sso
fi