Skip to content

fix: register meta types for CNPG scheme group version#943

Open
NiccoloFei wants to merge 1 commit into
mainfrom
dev/942
Open

fix: register meta types for CNPG scheme group version#943
NiccoloFei wants to merge 1 commit into
mainfrom
dev/942

Conversation

@NiccoloFei
Copy link
Copy Markdown
Contributor

@NiccoloFei NiccoloFei commented Jun 5, 2026

After the controller-runtime v0.24.0 upgrade (58f4fed), the instance sidecar continuously logs the following error :

v1.GetOptions is not suitable for converting to "postgresql.cnpg.io/v1

This breaks retention policy enforcement.

Add metav1.AddToGroupVersion(scheme, schemeGroupVersion) after the AddKnownTypes call in:

  • internal/cnpgi/common/scheme.go
  • internal/scheme/cnpg.go

Closes #942

Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
@NiccoloFei NiccoloFei requested a review from a team as a code owner June 5, 2026 14:17
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working go Pull requests that update go code labels Jun 5, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working go Pull requests that update go code lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing metav1 registration for CNPG scheme group version

3 participants