postgres-operator/pkg/apis/acid.zalan.do/v1
Christian Rohmann 743aade45f
Use finalizers to avoid losing delete events and to ensure full resource cleanup (#941)
* Add Finalizer functions to Cluster; add/remove finalizer on Create/Delete events
* Check if clusters have a deletion timestamp and we missed that event. Run Delete() and remove finalizer when done.
* Fix nil handling when using Service from map; Remove Service, Endpoint entries from their maps - just like with Secrets
* Add handling of ResourceNotFound to all delete functions (Service, Endpoint, LogicalBackup CronJob, PDB and Secret) - this is not a real error when deleting things
* Emit events when there are issues deleting resources to the user is informed
* Depend the removal of the Finalizer on all resources being deleted successfully first. Otherwise the next sync run should let us try again
* Add config option to enable finalizers
* Removed dangling whitespace at EOL
* config.EnableFinalizers is a bool pointer

---------

Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2024-01-04 16:22:53 +01:00
..
const.go Use /status subresource instead of plain manifest field (#534) 2019-05-07 12:01:45 +02:00
crds.go Add hugepages 2Mi and 1Gi fields to ResourceDescription and pass them to the statefulset (#2311) 2024-01-04 15:59:27 +01:00
doc.go Fix golint failures 2019-01-08 13:04:48 +01:00
marshal.go Make teamId in cluster name optional (#2001) 2022-08-24 10:12:50 +02:00
operator_configuration_type.go Use finalizers to avoid losing delete events and to ensure full resource cleanup (#941) 2024-01-04 16:22:53 +01:00
postgres_team_type.go PostgresTeam CRD for advanced team management (#1165) 2020-10-28 10:40:10 +01:00
postgresql_type.go Add hugepages 2Mi and 1Gi fields to ResourceDescription and pass them to the statefulset (#2311) 2024-01-04 15:59:27 +01: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 enable operator support for pg15 and drop support for 9.5 and 9.6 (#2140) 2022-12-15 12:17:27 +01:00
zz_generated.deepcopy.go Make PodDisruptionBudget master label selector optional (#2364) 2024-01-04 15:58:24 +01:00