Files
homelab/kubernetes/infrastructure/cloudnative-pg
k.rennerandClaude Opus 4.7 e178b9858c
ci/woodpecker/manual/migrate-paperless Pipeline was successful
fix(cnpg): Move barman-cloud plugin into database namespace
CNPG 1.29's plugin controller ONLY discovers plugin Services and
their mTLS secrets in the operator's own namespace, per
internal/controller/plugin_controller.go:

    // We only consider the secrets that are installed in the
    // operator namespace because plugins need to be deployed
    // in the same namespace as the operator.
    if obj.GetNamespace() != r.OperatorNamespace {
        return nil
    }
    [...]
    client.InNamespace(r.OperatorNamespace),

The vendored manifest installed barman-cloud into cnpg-system, which
the operator (running in database) was blind to — hence the
phaseReason "Unknown plugin: 'barman-cloud.cloudnative-pg.io'. This
may be caused by the plugin not being loaded correctly by the operator."

Rewrote the manifest to target `database` (12 namespace fields
flipped). Removed the now-orphan cnpg-system namespace definition.
Reverted the temporary --log-level=debug arg on the operator.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 18:33:59 +02:00
..