[v9.3.x] Plugins: Fix parsing of Azure settings for plugins (#60625)
Plugins: Fix parsing of Azure settings for plugins (#60611)
Fix parsing of Azure settings for plugins
(cherry picked from commit 96b7fb15de)
Co-authored-by: Sergey Kostrukov <sekost@microsoft.com>
This commit is contained in:
co-authored by
Sergey Kostrukov
parent
d726a9648f
commit
f05f7db37d
@@ -41,7 +41,6 @@ func ProvideConfig(settingProvider setting.Provider, grafanaCfg *setting.Cfg) *C
|
||||
func NewCfg(settingProvider setting.Provider, grafanaCfg *setting.Cfg) *Cfg {
|
||||
logger := log.New("plugin.cfg")
|
||||
|
||||
azure := settingProvider.Section("azure")
|
||||
aws := settingProvider.Section("aws")
|
||||
plugins := settingProvider.Section("plugins")
|
||||
|
||||
@@ -65,12 +64,8 @@ func NewCfg(settingProvider setting.Provider, grafanaCfg *setting.Cfg) *Cfg {
|
||||
PluginsAllowUnsigned: allowedUnsigned,
|
||||
AWSAllowedAuthProviders: allowedAuth,
|
||||
AWSAssumeRoleEnabled: aws.KeyValue("assume_role_enabled").MustBool(grafanaCfg.AWSAssumeRoleEnabled),
|
||||
Azure: &azsettings.AzureSettings{
|
||||
Cloud: azure.KeyValue("cloud").MustString(grafanaCfg.Azure.Cloud),
|
||||
ManagedIdentityEnabled: azure.KeyValue("managed_identity_enabled").MustBool(grafanaCfg.Azure.ManagedIdentityEnabled),
|
||||
ManagedIdentityClientId: azure.KeyValue("managed_identity_client_id").MustString(grafanaCfg.Azure.ManagedIdentityClientId),
|
||||
},
|
||||
LogDatasourceRequests: grafanaCfg.IsFeatureToggleEnabled(featuremgmt.FlagDatasourceLogger),
|
||||
Azure: grafanaCfg.Azure,
|
||||
LogDatasourceRequests: grafanaCfg.IsFeatureToggleEnabled(featuremgmt.FlagDatasourceLogger),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user