fix(api): resolve recovery preflight paths in containers
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 33s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled

This commit is contained in:
Your Name
2026-07-01 16:11:13 +08:00
parent 90507c6234
commit ba44c4cff1
3 changed files with 11 additions and 4 deletions

View File

@@ -15,9 +15,12 @@ from collections.abc import Callable
from pathlib import Path
from typing import Any
from src.services.snapshot_paths import resolve_repo_root
_SCHEMA_VERSION = "harbor_registry_controlled_recovery_preflight_v1"
_REPO_ROOT = resolve_repo_root(Path(__file__))
_DEFAULT_ROUTE_SOURCE = (
Path(__file__).resolve().parents[4]
_REPO_ROOT
/ "infra"
/ "ansible"
/ "roles"
@@ -26,7 +29,7 @@ _DEFAULT_ROUTE_SOURCE = (
/ "188-internal-tools-https.conf.j2"
)
_DEFAULT_WATCHDOG_SOURCE = (
Path(__file__).resolve().parents[4]
_REPO_ROOT
/ "scripts"
/ "reboot-recovery"
/ "harbor-watchdog.sh"

View File

@@ -11,13 +11,15 @@ import re
from pathlib import Path
from typing import Any
from src.services.snapshot_paths import resolve_repo_root
from src.services.stockplatform_public_api_runtime_readback import (
load_latest_stockplatform_public_api_runtime_readback,
)
_SCHEMA_VERSION = "stockplatform_public_api_controlled_recovery_preflight_v1"
_REPO_ROOT = resolve_repo_root(Path(__file__))
_DEFAULT_ROUTE_SOURCE = (
Path(__file__).resolve().parents[4]
_REPO_ROOT
/ "infra"
/ "ansible"
/ "roles"