mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-12 05:33:11 +01:00
chore: implement Gabriele's suggestion
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
This commit is contained in:
parent
0dcb8d8122
commit
b9d7a82ec9
@ -37,8 +37,9 @@ func CollectSecretNamesFromCredentials(barmanCredentials *barmanapi.BarmanCreden
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
if barmanCredentials.Azure != nil {
|
if barmanCredentials.Azure != nil {
|
||||||
// When using default Azure credentials, no secrets are required
|
// When using default Azure credentials or managed identity, no secrets are required
|
||||||
if !barmanCredentials.Azure.UseDefaultAzureCredentials {
|
if !barmanCredentials.Azure.UseDefaultAzureCredentials &&
|
||||||
|
!barmanCredentials.Azure.InheritFromAzureAD {
|
||||||
references = append(
|
references = append(
|
||||||
references,
|
references,
|
||||||
barmanCredentials.Azure.ConnectionString,
|
barmanCredentials.Azure.ConnectionString,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user