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> |
||
|---|---|---|
| .. | ||
| const.go | ||
| crds.go | ||
| doc.go | ||
| marshal.go | ||
| operator_configuration_type.go | ||
| operatorconfiguration.crd.yaml | ||
| postgres_team_type.go | ||
| postgresql.crd.yaml | ||
| postgresql_type.go | ||
| register.go | ||
| util.go | ||
| util_test.go | ||
| zz_generated.deepcopy.go | ||