postgres-operator/pkg/apis
Raphael Torquato ce7a115d4e Fix bool config defaults when using OperatorConfiguration CRD
When using OperatorConfiguration CRD, boolean fields with default value
of `true` (like `enable_database_access` and `debug_logging`) were
incorrectly defaulting to `false` when not explicitly specified.

This happened because Go initializes bool fields to `false`, and there
was no coalesce logic to apply the intended defaults.

The fix changes the CRD type fields from `bool` to `*bool` (pointer),
allowing us to distinguish between "not specified" (nil) and "explicitly
set to false". Then we use the existing `CoalesceBool` utility function
to apply the correct defaults.

Fixes #2575
2026-04-26 12:33:58 -03:00
..
acid.zalan.do Fix bool config defaults when using OperatorConfiguration CRD 2026-04-26 12:33:58 -03:00
zalando.org Regenerate code for 2026 header (#3029) 2026-01-09 15:38:16 +01:00