Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependency on rancher-machine module #308

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

mjura
Copy link
Contributor

@mjura mjura commented Nov 23, 2023

What this PR does / why we need it:

We have to drop rancher-machine module dependency, because it was deprecated.

Add FindTenantID and NewSubscriptionsClient functions.

FindTenantID function is used to find the tenant ID for the subscription ID. It will send an unauthenticated request to the Azure Resource Manager endpoint to get the tenant ID from the WWW-Authenticate header.

Which issue(s) this PR fixes
Issue ##214

@mjura mjura requested a review from a team as a code owner November 23, 2023 06:46
@mjura mjura force-pushed the main-findtenantid branch from 296e04b to c97a523 Compare November 23, 2023 06:47
Add FindTenantID and NewSubscriptionsClient functions.

FindTenantID function is used to find the tenant ID for the subscription ID.
It will send an unauthenticated request to the Azure Resource Manager endpoint to
get the tenant ID from the WWW-Authenticate header.

Signed-off-by: Michal Jura <[email protected]>
@mjura mjura force-pushed the main-findtenantid branch from c97a523 to d71f5a4 Compare November 23, 2023 06:49
"time"

"github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2020-11-01/containerservice"
"github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-11-01/subscriptions"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could the version of the azure sdk be unified here? 2020-11-01 for both.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately this version doesn't exist, we are using already 2019-11-01 next is completely new Azure SDK and migration will be done in another card #287

@mjura mjura requested a review from Danil-Grigorev November 27, 2023 11:15
@mjura mjura merged commit 16fad85 into rancher:main Nov 28, 2023
6 checks passed
@mjura mjura deleted the main-findtenantid branch July 23, 2024 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants