postgres-operator/pkg/apis/acid.zalan.do/v1
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
..
const.go add unit test and documentation for finalizers (#2509) 2024-01-22 12:13:40 +01:00
crds.go Fix/logical backup job cleanup (#3111) 2026-06-19 12:12:58 +02:00
doc.go Fix golint failures 2019-01-08 13:04:48 +01:00
marshal.go add support for global maintenance windows (#3038) 2026-01-30 11:37:21 +01:00
operator_configuration_type.go Fix/logical backup job cleanup (#3111) 2026-06-19 12:12:58 +02:00
postgres_team_type.go Generate CRD for postgresteam resource (#3004) 2026-01-10 19:39:08 +01:00
postgresql.crd.yaml re-generate CRDs to latest state (#3109) 2026-06-12 15:44:55 +02:00
postgresql_type.go update new source ranges validation for kubebuilder (#3110) 2026-06-13 00:14:53 +02:00
register.go PostgresTeam CRD for advanced team management (#1165) 2020-10-28 10:40:10 +01:00
util.go Make teamId in cluster name optional (#2001) 2022-08-24 10:12:50 +02:00
util_test.go feat: add IPv6 support to allowedSourceRanges (#3082) 2026-06-12 15:09:06 +02:00
zz_generated.deepcopy.go Fix/logical backup job cleanup (#3111) 2026-06-19 12:12:58 +02:00