fix: suppress deprecated event recorder warning

Keep using GetEventRecorderFor as the new GetEventRecorder API
requires different RBAC permissions.

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
This commit is contained in:
Marco Nenciarini 2026-01-29 18:07:45 +01:00
parent bb55538274
commit 24c2668626
No known key found for this signature in database
GPG Key ID: 589F03F01BA55038

View File

@ -100,6 +100,7 @@ func Start(ctx context.Context) error {
if err := mgr.Add(&CatalogMaintenanceRunnable{
Client: customCacheClient,
//nolint:staticcheck // SA1019: old API required for RBAC compatibility
Recorder: mgr.GetEventRecorderFor("policy-runnable"),
ClusterKey: types.NamespacedName{
Namespace: namespace,