postgres-operator/pkg/apis/acid.zalan.do
rasoanaivo-r b43c7be1d0
fix operatorconfigurations CRD: render sidecars as array (#3160)
configuration.sidecars was annotated with kubebuilder:validation:Type=object
while SidecarContainers is a []v1.Container, so the generated schema rejected
every list value and global sidecars could not be configured at all.

Drop the hand-written Schemaless/Type=object markers and let controller-gen
derive the schema from the Go type, the same way spec.initContainers is
already handled in the Postgresql CRD. The field now renders as type: array
with a full Container schema for its items.

Fixes #3159

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-11 17:10:05 +02:00
..
v1 fix operatorconfigurations CRD: render sidecars as array (#3160) 2026-08-11 17:10:05 +02:00
register.go Use code-generation for CRD API and deepcopy methods (#369) 2018-08-15 17:22:25 +02:00