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

Bump Azure SDK #447

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Conversation

yiannistri
Copy link
Contributor

@yiannistri yiannistri commented Mar 22, 2024

What this PR does / why we need it:

This PR bumps the Azure SDK dependencies and migrates the majority of the code away from the now deprecated Azure SDK. For more details about the SDK changes see here.

Which issue(s) this PR fixes
Issue #132

Special notes for your reviewer:

Notable changes:

  • Migrated from github.com/golang/mock/mockgen to go.uber.org/mock/mockgen as the former is not being maintained anymore and the latter works well with generics, which the new version of the Azure SDK makes use of.
  • Added Ephemeral and Managed values to OsDiskType enum used in CRD as the new SDK uses them.
  • In the previous SDK, the ManagedClusterProperties struct was embedded inManagedCluster whereas in the new SDK, it is under a Properties field.
  • The ManagedCluster.NetworkProfile.DockerBridgeCidr field has been deprecated from the Azure API and therefore is no longer being set. However, we still need to deprecate it from the CRD API.
  • Introduced Poller[T any] interface to allow for mocking long-running polls using the new SDK.

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests
  • backport needed

@yiannistri yiannistri added the kind/chore Internal stuff label Mar 22, 2024
@yiannistri yiannistri force-pushed the 132-bump-azure-sdk-version branch 5 times, most recently from 1b8c2b2 to 847b6f4 Compare March 26, 2024 13:51
@mjura mjura mentioned this pull request Mar 26, 2024
3 tasks
@yiannistri yiannistri marked this pull request as ready for review March 27, 2024 10:55
@yiannistri yiannistri requested a review from a team as a code owner March 27, 2024 10:55
mjura
mjura previously approved these changes Apr 17, 2024
Copy link
Contributor

@mjura mjura left a comment

Choose a reason for hiding this comment

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

LGTM, please backport

@mjura
Copy link
Contributor

mjura commented Apr 17, 2024

please rebase

Copy link
Contributor

@mjura mjura left a comment

Choose a reason for hiding this comment

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

LGTM, thank you, great job

@yiannistri yiannistri merged commit c4744f1 into rancher:main Apr 17, 2024
6 of 7 checks passed
@yiannistri yiannistri deleted the 132-bump-azure-sdk-version branch April 17, 2024 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/chore Internal stuff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants