File tree 6 files changed +19
-6
lines changed
pkg/apis/acid.zalan.do/v1
6 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -333,11 +333,16 @@ configuration they are grouped under the `kubernetes` key.
333
333
will not add the ` spilo-role=master ` selector to the PDB.
334
334
335
335
* ** enable_finalizers**
336
- By default, a deletion of the Postgresql resource will trigger a cleanup of
337
- all child resources. However, if the database cluster is in a broken state
338
- (e.g. failed initialization) and the operator cannot fully sync it, there can
339
- be leftovers from a DELETE event. By enabling finalizers the Operator will
340
- ensure all managed resources are deleted prior to the Postgresql resource.
336
+ By default, a deletion of the Postgresql resource will trigger an event
337
+ that leads to a cleanup of all child resources. However, if the database
338
+ cluster is in a broken state (e.g. failed initialization) and the operator
339
+ cannot fully sync it, there can be leftovers. By enabling finalizers the
340
+ operator will ensure all managed resources are deleted prior to the
341
+ Postgresql resource. There is a trade-off though: The deletion is only
342
+ performed at the next cluster SYNC cycle when finding a ` deletionTimestamp `
343
+ in the metadata and not immediately after issueing a delete command. The
344
+ final removal of the custom resource will add a DELETE event to the worker
345
+ queue but the child resources are already gone at this point.
341
346
The default is ` false ` .
342
347
343
348
* ** enable_pod_disruption_budget**
Original file line number Diff line number Diff line change 4
4
5
5
require (
6
6
github.com/aws/aws-sdk-go v1.42.18
7
- github.com/evanphx/json-patch v4.12.0+incompatible
8
7
github.com/golang/mock v1.6.0
9
8
github.com/lib/pq v1.10.4
10
9
github.com/motomux/pretty v0.0.0-20161209205251-b2aad2c9a95d
@@ -27,6 +26,7 @@ require (
27
26
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
28
27
github.com/davecgh/go-spew v1.1.1 // indirect
29
28
github.com/emicklei/go-restful/v3 v3.8.0 // indirect
29
+ github.com/evanphx/json-patch v4.12.0+incompatible // indirect
30
30
github.com/go-logr/logr v1.2.3 // indirect
31
31
github.com/go-openapi/jsonpointer v0.19.5 // indirect
32
32
github.com/go-openapi/jsonreference v0.19.5 // indirect
Original file line number Diff line number Diff line change 39
39
# enable_admin_role_for_users: "true"
40
40
# enable_crd_registration: "true"
41
41
# enable_cross_namespace_secret: "false"
42
+ enable_finalizers : " false"
42
43
# enable_database_access: "true"
43
44
enable_ebs_gp3_migration : " false"
44
45
# enable_ebs_gp3_migration_max_size: "1000"
Original file line number Diff line number Diff line change @@ -203,6 +203,9 @@ spec:
203
203
enable_cross_namespace_secret :
204
204
type : boolean
205
205
default : false
206
+ enable_finalizers :
207
+ type : boolean
208
+ default : false
206
209
enable_init_containers :
207
210
type : boolean
208
211
default : true
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ configuration:
57
57
# - deployment-time
58
58
# - downscaler/*
59
59
# enable_cross_namespace_secret: "false"
60
+ enable_finalizers : false
60
61
enable_init_containers : true
61
62
enable_pod_antiaffinity : false
62
63
enable_pod_disruption_budget : true
Original file line number Diff line number Diff line change @@ -1305,6 +1305,9 @@ var OperatorConfigCRDResourceValidation = apiextv1.CustomResourceValidation{
1305
1305
"enable_cross_namespace_secret" : {
1306
1306
Type : "boolean" ,
1307
1307
},
1308
+ "enable_finalizers" : {
1309
+ Type : "boolean" ,
1310
+ },
1308
1311
"enable_init_containers" : {
1309
1312
Type : "boolean" ,
1310
1313
},
You can’t perform that action at this time.
0 commit comments