postgres-operator/docs/reference
adshin21 bbc3eab7e0
Skip owner references on user secrets when secret deletion is disabled (#3165)
* Skip owner references on user secrets when secret deletion is disabled

Kubernetes garbage-collects owner-referenced secrets as soon as the
owning Postgresql resource is deleted, regardless of the operator's
own EnableSecretsDeletion check in Delete() (which only guards the
operator's explicit deleteSecrets() call, not GC). This made
enable_secrets_deletion=false ineffective whenever
enable_owner_references was also enabled, since GC removed the
credential secrets anyway.

Now the generated secrets are not removed when
enable_owner_references: true, enable_secrets_deletion: false.

* Document skip-owner-refs on user secrets when deletion disabled

- refresh inline comment in generateSingleUserSecret
- extend enable_owner_references / enable_secrets_deletion docs in
  operator_parameters.md to describe the interaction
- clarify in operator_parameters.md that the protection takes effect
  on the cluster's next sync after the setting is applied
- add third exception in administrator.md "Owner References and Finalizers"
- add TestGenerateSingleUserSecret_OwnerReferences covering all four
  flag combinations plus the cross-namespace cases

---------

Co-authored-by: Serdar Dalgıç <sd@serdardalgic.org>
2026-08-11 17:22:39 +02:00
..
cluster_manifest.md change volume specs to int32 and define max iops and throughput values (#3139) 2026-07-27 16:32:22 +02:00
command_line_and_environment.md Add support for passing extra command-line args via Helm values (#2892) 2026-06-01 10:04:48 +02:00
operator_parameters.md Skip owner references on user secrets when secret deletion is disabled (#3165) 2026-08-11 17:22:39 +02:00