fix: reassert Pimox registry path on cluster start
This commit is contained in:
parent
8236819f82
commit
46a5277c77
|
|
@ -191,6 +191,22 @@ start_remote_kubernetes_services() {
|
|||
"sudo systemctl start containerd && sudo systemctl start kubelet"
|
||||
}
|
||||
|
||||
ensure_pimox_registry_recovery_path() {
|
||||
local registry_endpoint="${LAB_REGISTRY_ENDPOINT:-${TF_VAR_registry_endpoint:-}}"
|
||||
|
||||
if [[ "${LAB_CLUSTER_PROFILE:-debian}" != "pimox" ]]; then
|
||||
return 0
|
||||
fi
|
||||
if [[ -z "${registry_endpoint}" ]]; then
|
||||
echo "Skipping Pimox registry recovery wiring because LAB_REGISTRY_ENDPOINT is unset."
|
||||
return 0
|
||||
fi
|
||||
|
||||
echo "--> Reasserting Pimox registry recovery path for ${registry_endpoint}..."
|
||||
ensure_pimox_registry_endpoint_forwarding "${registry_endpoint}"
|
||||
ensure_pimox_containerd_registry_refresh "${registry_endpoint}"
|
||||
}
|
||||
|
||||
wait_for_ssh_target() {
|
||||
local target="$1"
|
||||
local timeout_seconds="${2:-180}"
|
||||
|
|
@ -553,6 +569,7 @@ start_cluster() {
|
|||
start_pimox_control_plane_vm
|
||||
start_pimox_worker_vms
|
||||
wait_for_cluster_ssh_targets
|
||||
ensure_pimox_registry_recovery_path
|
||||
|
||||
if [[ -n "${LAB_CLUSTER_CONTROL_PLANE_LAN_IP:-}" ]]; then
|
||||
control_plane_target="${LAB_CLUSTER_CONTROL_PLANE_USER:-${LAB_DEBIAN_USER:-jv}}@${LAB_CLUSTER_CONTROL_PLANE_LAN_IP}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue