Deduplicating Cleanuparr job configuration in GitOps
The latest main push removes a duplicated Cleanuparr job definition from our GitOps manifests. By collapsing the two identical configurations into a single source, we cut down on unnecessary scheduling, reduce drift between environments, and keep the CI pipeline focused on active resources.
Commit overview
The commit refactor(gitops): deduplicate Cleanuparr job configuration (#2316) touches the repository’s .gitops/cleanuppar folder. It merges the previously separate job spec into one consolidated block, eliminating an extra Terragrunt wrapper that defined the same target.
Why the Cleanuparr job was duplicated
During an early migration we created a second entry for Cleanuparr because the old runbook referenced both a generic cleanup task and a dedicated Cleanuparr‑specific workflow. Over time the two entries became independent, each triggering its own schedule and potentially conflicting resource usage. Removing the redundancy aligns the job with the existing Terraform provider and avoids double‑run cycles.
Verification and CI impact
After applying the changes, a full terragrunt plan across all stacks produced the expected resource graph without errors. GitHub Actions now reports a single warning that has been resolved—no longer about an unused input variable. One file was placed on hold during review (withheldFileCount: 1), which turned out to be a stale local example; once removed the pipeline stays green.
Takeaway for other homelab projects
When you spot two nearly identical job definitions in a multi‑project GitOps repo, start by grepping for the job name across all manifests. If you find parallel blocks, consolidate them into one configuration and update the corresponding Terraform resources. This keeps the deployment surface lean and makes future audits easier.