feat(deploy): railiance01 consistency sweep host mount and hostname override
Add git/ssh to the runtime image, mount /home/tegwick into the state-hub pod, resolve host_paths via STATE_HUB_SWEEP_HOSTNAME, and fall back to the railiance01 the-custodian canon path for classification validation.
This commit is contained in:
parent
ae14fc3e49
commit
16201ac918
6 changed files with 62 additions and 11 deletions
|
|
@ -11,10 +11,13 @@ from pathlib import Path
|
|||
|
||||
import yaml
|
||||
|
||||
# Primary path (sibling checkout); fallback relative to state-hub repo root.
|
||||
# Workstation checkout, railiance01 fleet checkout, then state-hub sibling fallback.
|
||||
_PRIMARY_ALLOWED = Path(
|
||||
"/home/worsch/the-custodian/canon/standards/repo-classification.allowed.yaml"
|
||||
)
|
||||
_RAILIANCE_ALLOWED = Path(
|
||||
"/home/tegwick/the-custodian/canon/standards/repo-classification.allowed.yaml"
|
||||
)
|
||||
_FALLBACK_ALLOWED = (
|
||||
Path(__file__).resolve().parent.parent.parent
|
||||
/ "the-custodian"
|
||||
|
|
@ -67,13 +70,12 @@ class ClassificationData:
|
|||
|
||||
|
||||
def _allowed_path() -> Path:
|
||||
if _PRIMARY_ALLOWED.is_file():
|
||||
return _PRIMARY_ALLOWED
|
||||
if _FALLBACK_ALLOWED.is_file():
|
||||
return _FALLBACK_ALLOWED
|
||||
for candidate in (_PRIMARY_ALLOWED, _RAILIANCE_ALLOWED, _FALLBACK_ALLOWED):
|
||||
if candidate.is_file():
|
||||
return candidate
|
||||
raise FileNotFoundError(
|
||||
"repo-classification.allowed.yaml not found at "
|
||||
f"{_PRIMARY_ALLOWED} or {_FALLBACK_ALLOWED}"
|
||||
f"{_PRIMARY_ALLOWED}, {_RAILIANCE_ALLOWED}, or {_FALLBACK_ALLOWED}"
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue