Skip to content

Commit 4081dd9

Browse files
krutonmnencia
authored andcommitted
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 <kenny@the-b.org>
1 parent 376e178 commit 4081dd9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/cnpgi/operator/identity.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ func (i IdentityImplementation) GetPluginCapabilities(
6262
},
6363
},
6464
},
65+
{
66+
Type: &identity.PluginCapability_Service_{
67+
Service: &identity.PluginCapability_Service{
68+
Type: identity.PluginCapability_Service_TYPE_INSTANCE_SIDECAR_INJECTION,
69+
},
70+
},
71+
},
6572
},
6673
}, nil
6774
}

0 commit comments

Comments
 (0)