Skip to content

Conversation

@roseo1
Copy link

@roseo1 roseo1 commented Jan 12, 2026

Resolves #1083

In a cluster with OwnerReferencesPermissionEnforcement admission controller enabled, Reloader unable to create Job from CronJob template as missing batch cronjobs/finalizers update permission.

Have tested this by adding an additional role binding to the reloader service account.

Before:

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>"

After:

time="2026-01-12T08:32:22Z" level=info msg="Changes detected in 'test-secret' of type 'SECRET' in namespace 'example'; updated 'test-cronjob' of type 'CronJob' in namespace 'example'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENHANCE] additional cronjob permissions required for clusters using owner references admission controller (OpenShift)

1 participant