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>
This commit is contained in:
rasoanaivo-r
2026-08-20 19:28:36 +02:00
committed by Felix Kunde
co-authored by Claude Opus 5
parent 258aead192
commit ac36814bda
4 changed files with 4564 additions and 9 deletions
File diff suppressed because it is too large Load Diff