Finish ACTIVITY-WP-0021: state-hub sink default + deploy verification
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
Build and Publish Container Image / build-and-push (push) Successful in 28s

Record railiance01 one-shot evidence (Binky/SBOM/triage COMPLETED), keep
ISSUE_SINK_TYPE=state-hub until Forgejo PAT rotation, and re-read sink env
at factory call time.
This commit is contained in:
tegwick 2026-07-21 07:33:03 +02:00
parent 8ca0267382
commit bd1c993405
3 changed files with 46 additions and 10 deletions

View file

@ -183,8 +183,12 @@ class StateHubProgressSink(IssueSink):
def get_issue_sink() -> IssueSink:
"""Factory: returns the configured IssueSink based on ISSUE_SINK_TYPE."""
sink_type = ISSUE_SINK_TYPE.lower()
"""Factory: returns the configured IssueSink based on ISSUE_SINK_TYPE.
Re-reads the env on each call so ConfigMap/env patches apply without
requiring a module reload (ACTIVITY-WP-0021).
"""
sink_type = os.environ.get("ISSUE_SINK_TYPE", ISSUE_SINK_TYPE).lower()
if sink_type == "null":
return NullSink()
if sink_type in {"state-hub", "state_hub", "progress"}: