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
@ -100,6 +100,7 @@ func Start(ctx context.Context) error {
|
|||||||
|
|
||||||
if err := mgr.Add(&CatalogMaintenanceRunnable{
|
if err := mgr.Add(&CatalogMaintenanceRunnable{
|
||||||
Client: customCacheClient,
|
Client: customCacheClient,
|
||||||
|
//nolint:staticcheck // SA1019: old API required for RBAC compatibility
|
||||||
Recorder: mgr.GetEventRecorderFor("policy-runnable"),
|
Recorder: mgr.GetEventRecorderFor("policy-runnable"),
|
||||||
ClusterKey: types.NamespacedName{
|
ClusterKey: types.NamespacedName{
|
||||||
Namespace: namespace,
|
Namespace: namespace,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user