Skip to content

Commit 8190399

Browse files
committed
add labels to the job and pods for the cronjob
1 parent e716424 commit 8190399

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cluster/manifests/role-sync-controller/cronjob.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,17 @@ metadata:
1010
spec:
1111
schedule: "*/1 * * * *"
1212
jobTemplate:
13+
metadata:
14+
labels:
15+
application: kubernetes
16+
component: role-sync-controller
1317
spec:
1418
backoffLimit: 3
1519
template:
20+
metadata:
21+
labels:
22+
application: kubernetes
23+
component: role-sync-controller
1624
spec:
1725
serviceAccountName: role-sync-controller
1826
restartPolicy: OnFailure

0 commit comments

Comments
 (0)