feat(forgejo-runner): split into golang/node/rust runners, retire generic docker runner

This commit is contained in:
Story Crater Bot
2026-08-21 16:49:26 -07:00
parent 130746e6a1
commit dbc4a55b02
4 changed files with 90 additions and 11 deletions
+63 -9
View File
@@ -131,21 +131,27 @@ spec:
# than failing on "already exists".
- ServerSideApply=true
---
# Forgejo runner (local chart), single generic "docker"-labeled instance.
# Being retired in favor of three language-specific instances of the same
# chart (forgejo-runner-golang/-node/-rust). Added here ahead of that removal,
# in its own commit, so it syncs BEFORE the Application is deleted -- a
# non-cascading delete would otherwise orphan this Deployment, its dind
# sidecar and both PVCs (same lesson as the Kong retirement).
# Forgejo runners (local chart, one instance per language), replacing the
# single generic "docker"-labeled runner. Each instance is a full standalone
# Deployment with its own dind sidecar, own PVCs (registration + layer
# cache) and own registered label -- there is no shared generic runner
# anymore, so each instance also builds and pushes images for the repos it
# serves (the chart's ConfigMap/NetworkPolicy fixes for that -- valid_volumes,
# network: host, egress to ingress-nginx -- apply identically to all three).
#
# `values.yaml` is the chart's default and doubles as the golang instance's
# config; node and rust layer a small values-<lang>.yaml override on top for
# just runner.name/runner.labels. All three share one runner-token Secret
# (Forgejo registration tokens are reusable across multiple runners, unlike
# GitHub's one-time tokens) -- if that assumption is ever wrong, registration
# will fail loudly in the register initContainer's logs, not silently.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: forgejo-runner
name: forgejo-runner-golang
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "3"
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: homelab
source:
@@ -159,3 +165,51 @@ spec:
automated:
prune: true
selfHeal: true
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: forgejo-runner-node
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "3"
spec:
project: homelab
source:
repoURL: https://github.com/Riotpiaole/riotpiao.homelab.com.git
targetRevision: main
path: k8s/infra/forgejo-runner
helm:
valueFiles:
- values-node.yaml
destination:
server: https://kubernetes.default.svc
namespace: cicd
syncPolicy:
automated:
prune: true
selfHeal: true
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: forgejo-runner-rust
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "3"
spec:
project: homelab
source:
repoURL: https://github.com/Riotpiaole/riotpiao.homelab.com.git
targetRevision: main
path: k8s/infra/forgejo-runner
helm:
valueFiles:
- values-rust.yaml
destination:
server: https://kubernetes.default.svc
namespace: cicd
syncPolicy:
automated:
prune: true
selfHeal: true