-
-
Notifications
You must be signed in to change notification settings - Fork 634
Open
Labels
kind/enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
In OpenShift clusters, there are some default admission plugins enabled (default admission plugins), including OwnerReferencesPermissionEnforcement.
When using Reloader to trigger a Job from an existing CronJob as a template on a cluster with OwnerReferencesPermissionEnforcement admission plugin enabled, job creation is blocked by the admission controller.
time="2026-01-09T16:42:54Z" level=error msg="Update for 'test-cronjob' of type 'CronJob' in namespace 'example' failed with error jobs.batch \"test-cronjob-shkqt\" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , <nil>"
time="2026-01-09T16:42:54Z" level=error msg="Rolling upgrade for 'test-secret' failed with error = jobs.batch \"test-cronjob-shkqt\" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , <nil>"
Describe the solution you'd like
Extend reloader role to cover permissions required:
- apiGroups:
- "batch"
resources:
- cronjobs/finalizers
verbs:
- update
Describe alternatives you've considered
Additional context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/enhancementNew feature or requestNew feature or request