Production todo-md scan: sweep hostname + deploy tag main-d8808bf
Use STATE_HUB_SWEEP_HOSTNAME in doi_engine path resolution so /repos/todo-md-staleness works on railiance01 with mounted /home/tegwick.
This commit is contained in:
parent
1e59677d62
commit
c96fab2cdc
2 changed files with 8 additions and 2 deletions
|
|
@ -8,6 +8,7 @@ from __future__ import annotations
|
|||
|
||||
import asyncio
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import socket
|
||||
import urllib.error
|
||||
|
|
@ -242,8 +243,13 @@ def compute_fingerprint(
|
|||
return "|".join(parts)
|
||||
|
||||
|
||||
def _sweep_hostname() -> str:
|
||||
"""Hostname for host_paths resolution; override when pod hostname != fleet FQDN."""
|
||||
return os.environ.get("STATE_HUB_SWEEP_HOSTNAME", "").strip() or socket.gethostname()
|
||||
|
||||
|
||||
def _resolve_path(repo: dict) -> str:
|
||||
hostname = socket.gethostname()
|
||||
hostname = _sweep_hostname()
|
||||
host_paths = repo.get("host_paths") or {}
|
||||
candidates = []
|
||||
if host_paths.get(hostname):
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ namespace:
|
|||
|
||||
image:
|
||||
repository: forgejo.coulomb.social/coulomb/state-hub
|
||||
tag: "main-0ca9c27"
|
||||
tag: "main-d8808bf"
|
||||
|
||||
ingress:
|
||||
enabled: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue