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:
@@ -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{},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user