Finish ACTIVITY-WP-0021: state-hub sink default + deploy verification
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:
parent
8ca0267382
commit
bd1c993405
3 changed files with 46 additions and 10 deletions
|
|
@ -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"}:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue