Match Kubernetes plan concurrency to apply settings
This commit is contained in:
parent
46449119af
commit
9aeddb1cd6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue