fix(test-env): replace Job with initContainer for runner registration
Problem: Job ran on every ArgoCD sync, creating duplicate runners in Gitea. Solution: - initContainer gets token + saves to PVC (/data/.registration-token) - Runner container registers once, persists .runner file in PVC - Subsequent restarts skip registration (idempotent) - PVC runner-data (1Gi) persists registration across pod restarts - Removed register-job.yaml, moved RBAC to rbac.yaml - Runner waits for DinD before starting - Stable runner name: test-env-runner - Labels: edt + ubuntu-latest
This commit is contained in:
@@ -15,4 +15,4 @@ resources:
|
||||
# Gitea Actions runner (for apk-ci-ng workflows)
|
||||
- gitea-runner/deployment.yaml
|
||||
- gitea-runner/configmap.yaml
|
||||
- gitea-runner/register-job.yaml
|
||||
- gitea-runner/rbac.yaml
|
||||
|
||||
Reference in New Issue
Block a user