grafana-iam: init mt resourcepermission apis (#110821)

* Init mt resource permissions

* Few fixes for the mt service to work

* Refactor NewAPIService to take the provider and enabledapis
This commit is contained in:
Gabriel MABILLE
2025-09-11 17:46:29 +02:00
committed by GitHub
parent 2bd76d4044
commit aecc2c9fe7
2 changed files with 33 additions and 3 deletions
@@ -237,6 +237,16 @@ func AddAuthZKnownTypes(scheme *runtime.Scheme) error {
&CoreRoleList{},
&Role{},
&RoleList{},
// What is this about?
&metav1.PartialObjectMetadata{},
&metav1.PartialObjectMetadataList{},
)
return nil
}
func AddResourcePermissionKnownTypes(scheme *runtime.Scheme, version schema.GroupVersion) error {
scheme.AddKnownTypes(version,
&ResourcePermission{},
&ResourcePermissionList{},