Skip to content

feat: Add initial CronJob as external reconciler for resource cleanup#22

Draft
lbeckman314 wants to merge 1 commit into
mainfrom
feat/cronjob
Draft

feat: Add initial CronJob as external reconciler for resource cleanup#22
lbeckman314 wants to merge 1 commit into
mainfrom
feat/cronjob

Conversation

@lbeckman314
Copy link
Copy Markdown
Contributor

@lbeckman314 lbeckman314 commented May 8, 2026

Overview 🌀

This PR adds an initial cronjob to act as an for resource cleanup in K8s (i.e. "external reconciler")

It runs an example command (funnel kubernetes cleanup) that is designed to call the update "modular reconciler" implemented in uc-cdis:funnel:chore/reconcile_modular

Current Behavior ⚠️

K8s resource cleanup is run in the resource-intensive (and complicated!) functions directly in Funnel:

New Behavior ✔️

Resources are cleaned in a single, user-configurable Helm template.

Caution

TODO: Add examples of defaults + configuration options, for example:

  • Which resources to clean (default: all)
  • Time period between cleans (default: 300s?)

Backwards Compatibilty 🔄

Caution

TODO: Does this new behavior affect existing workflows/setups?

  • Likely yes, as the reconciler was first added to Funnel in Commit c108da6 (Feb 20, 2020)
  • Steps to make ensure compatible with previous builds (e.g. feature flag)?

Signed-off-by: Liam Beckman <lbeckman314@gmail.com>
@lbeckman314 lbeckman314 self-assigned this May 8, 2026
@lbeckman314 lbeckman314 added the enhancement New feature or request label May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant