postgres-operator/pkg/util
Jociele Padilha e4e686588e
Fix/logical backup job cleanup (#3111)
* feat(logical-backup): add configurable job history limits and TTL

Adds three new configuration options for logical backup cronjobs:
- logical_backup_successful_jobs_history_limit (default: 3)
- logical_backup_failed_jobs_history_limit (default: 3)
- logical_backup_ttl_seconds_after_finished (default: 86400)

These options control how many completed/failed backup jobs are
retained by Kubernetes and when finished jobs are automatically
deleted. This prevents accumulation of old backup jobs and pods
in namespaces with many PostgreSQL clusters.

Also updates the CronJob comparison logic to detect changes in
these new fields and trigger reconciliation when needed.

Closes zalando/postgres-operator#1092

* add added the 3 new fieldson crd

* updated gen api

---------

Co-authored-by: Jairo Llopis <jairo@moduon.team>
Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2026-06-19 12:12:58 +02:00
..
config Fix/logical backup job cleanup (#3111) 2026-06-19 12:12:58 +02:00
constants Do not set aws-load-balancer-connection-idle-timeout by default (#3054) 2026-04-24 14:23:54 +02:00
filesystems Fix golint warnings 2017-08-01 16:08:56 +02:00
httpclient Modernize code generation (#3003) 2026-01-09 14:22:10 +01:00
k8sutil refactor(controller): use kubernetes informers provided by client-go (#3080) 2026-06-03 12:43:34 +02:00
nicediff End 2 End tests speedup (#1180) 2020-10-28 10:04:33 +01:00
patroni Extend MaintenanceWindows parameter usage (#2810) 2025-01-15 18:04:36 +01:00
retryutil Fix typo (#965) 2020-05-12 09:20:09 +02:00
ringlog fix comments for ringlogger 2017-09-26 13:12:38 +02:00
teams add test team member (#1842) 2022-04-14 10:02:54 +02:00
users skip db user actions when its secret failed to sync on update (#2969) 2025-11-05 16:28:37 +01:00
volumes Modernize code generation (#3003) 2026-01-09 14:22:10 +01:00
util.go fix: set password encryption default to scram-sha-256 (#2962) 2026-06-04 20:55:04 +02:00
util_test.go add unit test and documentation for finalizers (#2509) 2024-01-22 12:13:40 +01:00