grafana-iam: Use the K8sStorage interface (#114799)
This commit is contained in:
@@ -405,7 +405,7 @@ func (b *IdentityAccessManagementAPIBuilder) UpdateResourcePermissionsAPIGroup(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Not ideal, the alternative is to wrap both stores that dualwrite uses
|
// Not ideal, the alternative is to wrap both stores that dualwrite uses
|
||||||
regStoreDW, ok := dw.(*registry.Store)
|
regStoreDW, ok := dw.(storewrapper.K8sStorage)
|
||||||
if !ok {
|
if !ok {
|
||||||
return fmt.Errorf("expected RegistryStoreDualWrite, got %T", dw)
|
return fmt.Errorf("expected RegistryStoreDualWrite, got %T", dw)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user