fix: serialize Kubernetes OpenTofu applies
This commit is contained in:
parent
779dd3bc34
commit
ec3e925a03
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue