diff --git a/k8s/infra/forgejo-runner/templates/deployment.yaml b/k8s/infra/forgejo-runner/templates/deployment.yaml index f60ab36..2ef614f 100644 --- a/k8s/infra/forgejo-runner/templates/deployment.yaml +++ b/k8s/infra/forgejo-runner/templates/deployment.yaml @@ -34,7 +34,11 @@ spec: command: ["sh", "-c"] args: - | - test -f /data/.runner || forgejo-runner register --no-interactive \ + # Always re-register to keep labels in sync with values.yaml. + # Without this, changing a runner label requires manually deleting + # the PVC or .runner file — not GitOps-friendly. + rm -f /data/.runner + forgejo-runner register --no-interactive \ --instance {{ .Values.runner.forgejoUrl }} \ --token $(RUNNER_TOKEN) \ --name {{ .Values.runner.name }} \