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:
parent
f1fcf21a94
commit
58b7ed4a13
1 changed files with 4 additions and 1 deletions
|
|
@ -288,8 +288,11 @@ spec:
|
|||
backoffLimit: 1
|
||||
template:
|
||||
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:
|
||||
app: forgejo-runner
|
||||
app: forgejo-prune
|
||||
role: prune
|
||||
spec:
|
||||
restartPolicy: Never
|
||||
|
|
|
|||
Loading…
Reference in a new issue