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

[2.8] Remove dependency on rancher-machine module #309

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:53
@furkatgofurov7
Copy link
Contributor

@mjura this probably needs a rebase? #311 is already merged and should fix scan problems in CI

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 <mjura@suse.com>
(cherry picked from commit d71f5a4)
Copy link
Contributor

@furkatgofurov7 furkatgofurov7 left a comment

Choose a reason for hiding this comment

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

Thank you!

@mjura mjura merged commit 891a546 into rancher:release-v2.8 Nov 28, 2023
7 checks passed
@mjura mjura deleted the v2.8-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.

2 participants