mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-03-09 12:12:21 +01:00
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:
parent
bb55538274
commit
24c2668626
@ -99,7 +99,8 @@ func Start(ctx context.Context) error {
|
||||
}
|
||||
|
||||
if err := mgr.Add(&CatalogMaintenanceRunnable{
|
||||
Client: customCacheClient,
|
||||
Client: customCacheClient,
|
||||
//nolint:staticcheck // SA1019: old API required for RBAC compatibility
|
||||
Recorder: mgr.GetEventRecorderFor("policy-runnable"),
|
||||
ClusterKey: types.NamespacedName{
|
||||
Namespace: namespace,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user