From 21b45e9935c7ae2e6888293475eabce4e8760c01 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Wed, 4 Mar 2026 23:37:25 -0800 Subject: [PATCH] fix(metrics): add injection type to operator The operator was not announcing the TYPE_INSTANCE_SIDECAR_INJECTION capability so the CNPG operator was not considering the plugin enabled. However, this bug was masked if you had set `isWALArchiver` to `true` in your config, the backward compatibility code was marking the plugin as enabled as a side-effect. Signed-off-by: Kenny Root --- internal/cnpgi/operator/identity.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/cnpgi/operator/identity.go b/internal/cnpgi/operator/identity.go index 0d48a197..8e6ee130 100644 --- a/internal/cnpgi/operator/identity.go +++ b/internal/cnpgi/operator/identity.go @@ -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 }