forgejo/prune: keep the job pod out of dind discovery

The Job pod carried app=forgejo-runner, so every run matched itself and
logged a confusing skip. It now carries app=forgejo-prune; discovery is
unchanged (label app=forgejo-runner + a dind container).
This commit is contained in:
Lance Walters 2026-10-27 01:45:57 -04:00
commit 58b7ed4a13

View file

@ -288,8 +288,11 @@ spec:
backoffLimit: 1 backoffLimit: 1
template: template:
metadata: metadata:
# Deliberately NOT app=forgejo-runner: dind discovery selects that
# label, and this pod must never be considered a daemon (it only has
# a host-daemon and a dind-daemons container).
labels: labels:
app: forgejo-runner app: forgejo-prune
role: prune role: prune
spec: spec:
restartPolicy: Never restartPolicy: Never