Description of the change
Currently, under cronjob.cronjob.label one can only specify labels for the cronJob object itself. It would be nice to be able to specify labels for the cronjob pods within the spec.jobTemplate.spec.template.metdata.labels. For example by:
cronjob:
enabled: true
type: cronjob
cronjob:
jobLabel:
app: nextcloud-cron
for
spec:
jobTemplate:
spec:
template:
metadata:
labels:
app: nextcloud-cron
Benefits
You can specify netpol rules for the job pods. This is mandatory if you already use fine-grained netpol rules for service communication, as the job would fail then.
Possible drawbacks
Can't think of any.
Description of the change
Currently, under
cronjob.cronjob.labelone can only specify labels for the cronJob object itself. It would be nice to be able to specify labels for the cronjob pods within thespec.jobTemplate.spec.template.metdata.labels. For example by:for
Benefits
You can specify netpol rules for the job pods. This is mandatory if you already use fine-grained netpol rules for service communication, as the job would fail then.
Possible drawbacks
Can't think of any.