feat: support shared Forgejo token for all RunnerPools #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/shared-forgejo-token"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add --forgejo-url flag and FORGEJO_TOKEN env var to the controller.
When both are set, the controller uses a single shared Forgejo client
for all RunnerPools instead of reading per-pool tokenSecretRef secrets.
This keeps the site-admin token in the controller's namespace,
away from runner pods.
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
Automated review by pr-reviewer v0.15.0 | Safety Check | anthropic | tracking id
r-c611e1-23d996This is an AI-generated review and may contain mistakes.
Status: ✅ Completed
✅ Verdict: LGTM — The changes safely add optional shared token support with proper fallback to per-pool tokens.
Complexity: moderate
Safety Check Review
The changes look clean and safe:
tokenSecretRefis providedtokenSecretRefwill continue to work unchangedThe automated flag about "possible secret or credential detected" is a false positive - it's just referencing the
FORGEJO_TOKENenvironment variable name in a comment, not exposing actual credentials.All changes follow expected patterns for optional configuration flags in Kubernetes operators.