plugin-barman-cloud/internal
Marco Nenciarini 4dfd20b2ef fix: read owner GVK from object metadata instead of scheme
The operator does not know the CNPG API group at runtime (it is
not a sidecar injected by the CNPG operator, so CUSTOM_CNPG_GROUP
and CUSTOM_CNPG_VERSION are not available). Move SetControllerReference
to the specs package and read the GVK from the decoded Cluster's
TypeMeta rather than looking it up in the scheme.

Remove CNPG types from the operator's scheme and the env var bindings
from cmd/operator since they are no longer needed.

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2026-04-13 13:22:09 +02:00
..
cmd fix: read owner GVK from object metadata instead of scheme 2026-04-13 13:22:09 +02:00
cnpgi fix: read owner GVK from object metadata instead of scheme 2026-04-13 13:22:09 +02:00
controller fix: discover affected Roles by label instead of listing Clusters 2026-04-13 13:22:09 +02:00
scheme fix: read owner GVK from object metadata instead of scheme 2026-04-13 13:22:09 +02:00