Skip to content

[BUG] Reloader starting jobs based on paused CronJobs #822

Open
@p4block

Description

We have a globally enabled Reloader, this worked fine for a while but we recently found a dangerous edge case.

When a paused cronjob would create a job that mounts a configmap, if the configmap changes an instance of the job is created. This instance is created outside of the cronjob mechanism with no way to track why it was created, too.

Expected behavior
A paused cronjob should not be instantiated under any circumstance

Additional context
I would like a way to enable Reloader globally but ignore cronjobs, even if not paused. This behavior is highly dangerous, as I would guess most cronjobs are not supposed to run outside of their schedule at all.

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions