Skip to content

Missing metav1 registration for CNPG scheme group version #942

@NiccoloFei

Description

@NiccoloFei

After the controller-runtime v0.24.0 upgrade (58f4fed), the following error is being continuously logged on every WAL archive:

{
  "level": "error",
  "ts": "2026-06-05T13:34:33.255699964Z",
  "msg": "Retention policy enforcement failed",
  "logging_pod": "cluster-example-1",
  "error": "v1.GetOptions is not suitable for converting to \"postgresql.cnpg.io/v1\" in scheme \"pkg/runtime/scheme.go:111\"",
  "stacktrace": "github.com/cloudnative-pg/machinery/pkg/log.(*logger).Error\n\t/go/pkg/mod/github.com/cloudnative-pg/machinery@v0.5.0/pkg/log/log.go:128\ngithub.com/cloudnative-pg/plugin-barman-cloud/internal/cnpgi/instance.(*CatalogMaintenanceRunnable).Start\n\t/workspace/internal/cnpgi/instance/retention.go:66\nsigs.k8s.io/controller-runtime/pkg/manager.(*runnableGroup).reconcile.func1\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.24.1/pkg/manager/runnable_group.go:260"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions