Compare commits

...

3 Commits

Author SHA1 Message Date
Ivan Kurnosov
23d9c73edd
Merge 5c348c7737 into 4a94cb9dae 2026-04-01 19:27:57 +02:00
Kenny Root
4a94cb9dae
fix(metrics): announce sidecar injection capability (#776)
Some checks failed
release-please / release-please (push) Failing after 5s
The operator was not announcing the TYPE_INSTANCE_SIDECAR_INJECTION
capability so the CNPG operator did not consider the plugin enabled
for instance pods. The instance manager never queried the plugin's
metrics endpoint, and the barman_cloud_cloudnative_pg_io_* metrics
were missing entirely.

This bug was masked when isWALArchiver was set to true in the plugin
configuration, because the backward compatibility code in CNPG would
mark the plugin as enabled as a side-effect. Users with isWALArchiver
set to false (or omitted) never saw the new metrics.

Closes #682 

Signed-off-by: Kenny Root <kenny@the-b.org>
2026-03-31 15:36:09 +02:00
Ivan Kurnosov
5c348c7737
fix(deploy): added certificate.privateKey.rotationPolicy
Signed-off-by: Ivan Kurnosov <zerkms@zerkms.com>
2025-12-05 10:30:35 +13:00
2 changed files with 11 additions and 0 deletions

View File

@ -62,6 +62,13 @@ func (i IdentityImplementation) GetPluginCapabilities(
},
},
},
{
Type: &identity.PluginCapability_Service_{
Service: &identity.PluginCapability_Service{
Type: identity.PluginCapability_Service_TYPE_INSTANCE_SIDECAR_INJECTION,
},
},
},
},
}, nil
}

View File

@ -1060,6 +1060,8 @@ spec:
secretName: barman-cloud-client-tls
usages:
- client auth
privateKey:
rotationPolicy: Always
---
apiVersion: cert-manager.io/v1
kind: Certificate
@ -1080,6 +1082,8 @@ spec:
secretName: barman-cloud-server-tls
usages:
- server auth
privateKey:
rotationPolicy: Always
---
apiVersion: cert-manager.io/v1
kind: Issuer