Skip to content

Commit

Permalink
Log resource group name + subscription ID when retrieving via Azure IMS
Browse files Browse the repository at this point in the history
Signed-off-by: Vlad Ungureanu <vladu@palantir.com>
  • Loading branch information
ungureanuvladvictor authored and aanm committed Apr 3, 2020
1 parent dd24983 commit 806df58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/ipam/allocator/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func (*AllocatorAzure) Start(getterUpdater ipam.CiliumNodeGetterUpdater) (*ipam.
return nil, errors.Wrap(err, "Azure subscription ID was not specified via CLI and retrieving it from the Azure IMS was not possible")
}
subscriptionID = subID
log.WithField("subscriptionID", subscriptionID).Debug("Detected subscriptionID via Azure IMS")
}

resourceGroupName := option.Config.AzureResourceGroup
Expand All @@ -66,6 +67,7 @@ func (*AllocatorAzure) Start(getterUpdater ipam.CiliumNodeGetterUpdater) (*ipam.
return nil, errors.Wrap(err, "Azure resource group name was not specified via CLI and retrieving it from the Azure IMS was not possible")
}
resourceGroupName = rgName
log.WithField("resourceGroupName", resourceGroupName).Debug("Detected resource group name via Azure IMS")
}

if option.Config.EnableMetrics {
Expand Down

0 comments on commit 806df58

Please sign in to comment.