mirror of https://github.com/grafana/grafana.git
				
				
				
			Folders: Fix deletion in api server (#110984)
This commit is contained in:
		
							parent
							
								
									ec0fa444b4
								
							
						
					
					
						commit
						b6567e5abc
					
				| 
						 | 
				
			
			@ -91,13 +91,13 @@ func RegisterAPIService(cfg *setting.Cfg,
 | 
			
		|||
	return builder
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewAPIService(ac authlib.AccessClient) *FolderAPIBuilder {
 | 
			
		||||
func NewAPIService(ac authlib.AccessClient, searcher resource.ResourceClient) *FolderAPIBuilder {
 | 
			
		||||
	return &FolderAPIBuilder{
 | 
			
		||||
		authorizer:   newMultiTenantAuthorizer(ac),
 | 
			
		||||
		searcher:     searcher,
 | 
			
		||||
		ignoreLegacy: true,
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (b *FolderAPIBuilder) GetGroupVersion() schema.GroupVersion {
 | 
			
		||||
	return resourceInfo.GroupVersion()
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -98,6 +98,7 @@ func (o *StorageOptions) AddFlags(fs *pflag.FlagSet) {
 | 
			
		|||
	fs.StringVar((*string)(&o.StorageType), "grafana-apiserver-storage-type", string(o.StorageType), "Storage type")
 | 
			
		||||
	fs.StringVar(&o.DataPath, "grafana-apiserver-storage-path", o.DataPath, "Storage path for file storage")
 | 
			
		||||
	fs.StringVar(&o.Address, "grafana-apiserver-storage-address", o.Address, "Remote grpc address endpoint")
 | 
			
		||||
	fs.StringVar(&o.SearchServerAddress, "grafana-apiserver-search-address", o.SearchServerAddress, "Remote grpc address endpoint for search server")
 | 
			
		||||
	fs.StringVar(&o.GrpcClientAuthenticationToken, "grpc-client-authentication-token", o.GrpcClientAuthenticationToken, "Token for grpc client authentication")
 | 
			
		||||
	fs.StringVar(&o.GrpcClientAuthenticationTokenExchangeURL, "grpc-client-authentication-token-exchange-url", o.GrpcClientAuthenticationTokenExchangeURL, "Token exchange url for grpc client authentication")
 | 
			
		||||
	fs.StringVar(&o.GrpcClientAuthenticationTokenNamespace, "grpc-client-authentication-token-namespace", o.GrpcClientAuthenticationTokenNamespace, "Token namespace for grpc client authentication")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue