fix: serialize Kubernetes OpenTofu applies
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-07 11:44:27 -06:00
parent 779dd3bc34
commit ec3e925a03
1 changed files with 9 additions and 0 deletions

View File

@ -629,6 +629,15 @@ run_tofu_stack() {
apply_args+=("-var-file=${LAB_CLUSTER_VAR_FILE}")
fi
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
exit 1
fi
apply_args+=("-parallelism=${k8s_tofu_parallelism}")
fi
if [[ "${stack}" == "bootstrap/platform" ]]; then
configure_platform_grafana_sso
fi