plugin-barman-cloud/internal/cnpgi/operator
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
..
config feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
rbac fix: read owner GVK from object metadata instead of scheme 2026-04-13 13:22:09 +02:00
specs fix: read owner GVK from object metadata instead of scheme 2026-04-13 13:22:09 +02:00
doc.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
identity.go fix(metrics): announce sidecar injection capability (#776) 2026-03-31 15:36:09 +02:00
lifecycle_certificates.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
lifecycle_envs.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
lifecycle_resources.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
lifecycle_test.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
lifecycle.go chore(deps): update golangci/golangci-lint docker tag to v2.8.0 (#721) 2026-01-14 12:20:09 +01:00
manager.go fix: read owner GVK from object metadata instead of scheme 2026-04-13 13:22:09 +02:00
reconciler.go fix: read owner GVK from object metadata instead of scheme 2026-04-13 13:22:09 +02:00
start.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
suite_test.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00