postgres-operator/pkg/controller
Jairo Llopis fbfae0e3df
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
2026-05-06 10:45:40 +01:00
..
controller.go try to set infra roles also if one fails (#3045) 2026-02-18 08:38:17 +01:00
logs_and_api.go deprecate ClusterName field of Postgresql type and remove team from REST endpoints (#2015) 2022-08-29 15:00:25 +02:00
node.go End 2 End tests speedup (#1180) 2020-10-28 10:04:33 +01:00
node_test.go diff SecurityContext of containers (#1255) 2020-12-15 10:06:53 +01:00
operator_config.go feat(logical-backup): add configurable job history limits and TTL 2026-05-06 10:45:40 +01:00
pod.go Move operator to go 1.14 (#882) 2020-03-30 15:50:17 +02:00
postgresql.go Use UpdateStatus instead of patch (#3005) 2026-01-27 10:44:30 +01:00
postgresql_test.go allow delete only if annotations meet configured criteria (#1069) 2020-08-13 16:36:22 +02:00
types.go Bootstrapped databases with best practice role setup (#843) 2020-04-29 10:56:06 +02:00
util.go Fix serving CRD at runtime (#3031) 2026-01-13 17:23:56 +01:00
util_test.go reflect linter feedback, remove unused argumnents and redundant type from arrays (#2739) 2024-08-27 17:56:07 +02:00